commit 565f7d555873a495fe20cf4c3463b2d4626f775e
parent 2af3904099f274a567348c2634ef8fe412d7038f
Author: Chris Allegretta <chrisa@asty.org>
Date: Thu, 15 Mar 2001 02:02:20 +0000
Added and fixed BUG #57
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@562 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git 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
@@ -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
@@ -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) {