]> git.wh0rd.org Git - nano.git/commitdiff
Make previous fix more succinct and fix page down also.
authorChris Allegretta <chrisa@asty.org>
Sun, 21 Mar 2010 04:56:37 +0000 (04:56 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 21 Mar 2010 04:56:37 +0000 (04:56 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/move.c

index 5124dddb43361e126dd2ffb5ab8a5b1327cba9f0..5ec0b6fa5967223339c8fbcb8cb7b6ec80c36be4 100644 (file)
@@ -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