revert erroneous change

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-11-03 21:38:51 +00:00
parent 2ffdea4fc1
commit 29bf57ff67
2 changed files with 3 additions and 5 deletions

View File

@ -38,8 +38,8 @@ CVS code -
file help.c; changes to help_init(), help_line_len(), and file help.c; changes to help_init(), help_line_len(), and
do_help() (all moved to help.c). (DLR) do_help() (all moved to help.c). (DLR)
- Tweak a few functions to remove the assumption that the file - Tweak a few functions to remove the assumption that the file
always ends in a magicline. Changes to do_cut_till_end(), always ends in a magicline. Changes to do_cut_till_end() and
do_next_word(), and do_wordlinechar_count(). (DLR) do_wordlinechar_count(). (DLR)
- Tweak a few functions to rely on fileage and filebot instead - Tweak a few functions to rely on fileage and filebot instead
of NULL for their checks to detect the top or bottom of the of NULL for their checks to detect the top or bottom of the
file. Changes to cut_line(), cut_to_eol(), do_page_up(), file. Changes to cut_line(), cut_to_eol(), do_page_up(),

View File

@ -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 /* If we haven't found it, leave the cursor at the end of the
* file. */ * file. */
if (openfile->current == NULL) { if (openfile->current == NULL)
openfile->current = openfile->filebot; openfile->current = openfile->filebot;
openfile->current_x = strlen(openfile->filebot->data);
}
openfile->placewewant = xplustabs(); openfile->placewewant = xplustabs();