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) {