From 565f7d555873a495fe20cf4c3463b2d4626f775e Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 15 Mar 2001 02:02:20 +0000 Subject: [PATCH] Added and fixed BUG #57 git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@562 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- BUGS | 2 ++ ChangeLog | 4 ++++ move.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BUGS b/BUGS index a3412e8a..6e8c7548 100644 --- a/BUGS +++ b/BUGS @@ -101,6 +101,8 @@ (55, discovered by Mark Senior) [FIXED]. - When using -R (regex) and -p (pico mode), subsequent searches after the first fail if no string is entered (56) [FIXED]. +- Page down on a file of editwinrows fails (again). Reported by Ryan + Krebs (57) [FIXED]. ** Open BUGS ** diff --git a/ChangeLog b/ChangeLog index 1b5565ae..5e25e188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ CVS code - - Added case for autoindenting text causing new line (Adam). - Added SAMELINE case to above. Added checks to cases 1b and 2b for placement of cursor. +- move.c: + page_down() + - Check for totlines < editwinrows in check for superflous + edit update (fixed BUG #57). - search.c: print_replaced() - s/occurence/occurrence typos (Jordi). diff --git a/move.c b/move.c index f73e838e..bda2c3c8 100644 --- a/move.c +++ b/move.c @@ -57,7 +57,7 @@ int page_down(void) /* AHEM, if we only have a screen or less of text, DONT do an edit_update, just move the cursor to editbot! */ - if (edittop == fileage && editbot == filebot) { + if (edittop == fileage && editbot == filebot && totlines < editwinrows) { current = editbot; reset_cursor(); } else if (editbot != filebot || edittop == fileage) {