From e76f06ba1c165238c487130d738e1cfd1fd03a8d Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 15 Mar 2001 03:35:51 +0000 Subject: [PATCH] move.c: page_down() - Oops, check for <= editwinrows (Ryan Krebs) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + move.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5e25e188..d2d1e4e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ CVS code - page_down() - Check for totlines < editwinrows in check for superflous edit update (fixed BUG #57). + - Oops, check for <= editwinrows (Ryan Krebs). - search.c: print_replaced() - s/occurence/occurrence typos (Jordi). diff --git a/move.c b/move.c index bda2c3c8..e81a4523 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 && totlines < editwinrows) { + if (edittop == fileage && editbot == filebot && totlines <= editwinrows) { current = editbot; reset_cursor(); } else if (editbot != filebot || edittop == fileage) {