From: Chris Allegretta Date: Fri, 29 Jan 2010 03:40:58 +0000 (+0000) Subject: 2010-01-28 Chris Allegretta X-Git-Tag: v2.2.3~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1456a10ace8cc5998b993a25f913c333b6bf3898;p=nano.git 2010-01-28 Chris Allegretta * 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. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index d6145d76..2a9b8f1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-28 Chris Allegretta + * 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 * 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 3978c364..8c9c5710 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); }