Commit e76f06ba authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
parent 565f7d55
Showing with 2 additions and 1 deletion
+2 -1
...@@ -8,6 +8,7 @@ CVS code - ...@@ -8,6 +8,7 @@ CVS code -
page_down() page_down()
- Check for totlines < editwinrows in check for superflous - Check for totlines < editwinrows in check for superflous
edit update (fixed BUG #57). edit update (fixed BUG #57).
- Oops, check for <= editwinrows (Ryan Krebs).
- search.c: - search.c:
print_replaced() print_replaced()
- s/occurence/occurrence typos (Jordi). - s/occurence/occurrence typos (Jordi).
......
...@@ -57,7 +57,7 @@ int page_down(void) ...@@ -57,7 +57,7 @@ int page_down(void)
/* AHEM, if we only have a screen or less of text, DONT do an /* AHEM, if we only have a screen or less of text, DONT do an
edit_update, just move the cursor to editbot! */ edit_update, just move the cursor to editbot! */
if (edittop == fileage && editbot == filebot && totlines < editwinrows) { if (edittop == fileage && editbot == filebot && totlines <= editwinrows) {
current = editbot; current = editbot;
reset_cursor(); reset_cursor();
} else if (editbot != filebot || edittop == fileage) { } else if (editbot != filebot || edittop == fileage) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment