Commit 29bf57ff authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

revert erroneous change

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 2ffdea4f
Showing with 3 additions and 5 deletions
+3 -5
......@@ -38,8 +38,8 @@ CVS code -
file help.c; changes to help_init(), help_line_len(), and
do_help() (all moved to help.c). (DLR)
- Tweak a few functions to remove the assumption that the file
always ends in a magicline. Changes to do_cut_till_end(),
do_next_word(), and do_wordlinechar_count(). (DLR)
always ends in a magicline. Changes to do_cut_till_end() and
do_wordlinechar_count(). (DLR)
- Tweak a few functions to rely on fileage and filebot instead
of NULL for their checks to detect the top or bottom of the
file. Changes to cut_line(), cut_to_eol(), do_page_up(),
......
......@@ -283,10 +283,8 @@ bool do_next_word(bool allow_punct, bool allow_update)
/* If we haven't found it, leave the cursor at the end of the
* file. */
if (openfile->current == NULL) {
if (openfile->current == NULL)
openfile->current = openfile->filebot;
openfile->current_x = strlen(openfile->filebot->data);
}
openfile->placewewant = xplustabs();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment