Added and fixed BUG #57

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@562 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2001-03-15 02:02:20 +00:00
parent 2af3904099
commit 565f7d5558
3 changed files with 7 additions and 1 deletions

2
BUGS
View File

@ -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 **

View File

@ -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).

2
move.c
View File

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