Commit 08273aa1 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment