nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 08273aa1b21db51dae7ce4a5bc45b47fcef68fc0
parent b5e76470281316be8b8ebdc4c6581f0cd8583f16
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sun, 21 Mar 2010 04:56:37 +0000

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

Diffstat:
Msrc/move.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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