Commit b5e76470 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

* move.c (do_page_up): Explicitly set current_y to 0 when paging up when not in

	  smooth scroll mode, as previous fixes would otherwise cause the cursor to not
	  really be moved to the stop of the screen.



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 42bd871a
Showing with 6 additions and 0 deletions
+6 -0
2010-03-21 Chris Allegretta <chrisa@asty.org>
* move.c (do_page_up): Explicitly set current_y to 0 when paging up when not in
smooth scroll mode, as previous fixes would otherwise cause the cursor to not
really be moved to the stop of the screen.
2010-03-07 Chris Allegretta <chrisa@asty.org> 2010-03-07 Chris Allegretta <chrisa@asty.org>
* configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and * configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
COLS can safely be redefined. Fixes compilation issues with cygwin, and likely COLS can safely be redefined. Fixes compilation issues with cygwin, and likely
......
...@@ -68,6 +68,7 @@ void do_page_up(void) ...@@ -68,6 +68,7 @@ void do_page_up(void)
if (!ISSET(SMOOTH_SCROLL)) { if (!ISSET(SMOOTH_SCROLL)) {
#endif #endif
openfile->current = openfile->edittop; openfile->current = openfile->edittop;
openfile->current_y = 0;
openfile->placewewant = 0; openfile->placewewant = 0;
#ifndef NANO_TINY #ifndef NANO_TINY
} }
......
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