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
master
Chris Allegretta 2010-03-21 04:56:37 +00:00
parent b5e7647028
commit 08273aa1b2
1 changed files with 2 additions and 3 deletions

View 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