diff --git a/ChangeLog b/ChangeLog index d6145d764702f0f8bba1b50bd6f6873a17a387c3..2a9b8f1a2345fe08c48fe8754462cb9d246ded7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-28 Chris Allegretta <chrisa@asty.org> + * move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cusor + position. Part one of fix for Savannah bug 21178 by Mike Frysinger. + +GNU nano 2.2.2 - 2010.01.17 2010-01-17 Chris Allegretta <chrisa@asty.org> * nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped function due to key rebinding, fixes crashes on FreeBSD repoted by Eitan diff --git a/src/move.c b/src/move.c index 3978c3645bfb1a5ac276acca1bab295c9b364ef2..8c9c57103419c08cbb60a1bb1fdca4afe637a25f 100644 --- a/src/move.c +++ b/src/move.c @@ -93,7 +93,6 @@ openfile->current->lineno, strlenpt(openfile->current->data)); #endif /* Scroll the edit window up a page. */ - openfile->current_y = 0; edit_update(NONE); } @@ -135,7 +134,6 @@ void do_page_down(void) openfile->placewewant); /* Scroll the edit window down a page. */ - openfile->current_y = 0; edit_update(NONE); }