From 08273aa1b21db51dae7ce4a5bc45b47fcef68fc0 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Sun, 21 Mar 2010 04:56:37 +0000 Subject: [PATCH] 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 --- src/move.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5