From: Chris Allegretta Date: Sun, 21 Mar 2010 04:56:37 +0000 (+0000) Subject: Make previous fix more succinct and fix page down also. X-Git-Tag: v2.2.4~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=08273aa1b21db51dae7ce4a5bc45b47fcef68fc0;p=nano.git Make previous fix more succinct and fix page down also. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/move.c b/src/move.c index 5124dddb..5ec0b6fa 100644 --- a/src/move.c +++ b/src/move.c @@ -68,8 +68,7 @@ void do_page_up(void) if (!ISSET(SMOOTH_SCROLL)) { #endif openfile->current = openfile->edittop; - openfile->current_y = 0; - openfile->placewewant = 0; + openfile->placewewant = openfile->current_y = 0; #ifndef NANO_TINY } #endif @@ -117,7 +116,7 @@ void do_page_down(void) if (!ISSET(SMOOTH_SCROLL)) { #endif openfile->current = openfile->edittop; - openfile->placewewant = 0; + openfile->placewewant = openfile->current_y = 0; #ifndef NANO_TINY } #endif