]> git.wh0rd.org Git - nano.git/commitdiff
- page_down() do not edit_update() if we are moving to the bottom of the file
authorAdam Rogoyski <rogoyski@cs.utexas.edu>
Thu, 6 Jul 2000 02:14:06 +0000 (02:14 +0000)
committerAdam Rogoyski <rogoyski@cs.utexas.edu>
Thu, 6 Jul 2000 02:14:06 +0000 (02:14 +0000)
  and the bottom is currently in the edit buffer.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@74 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

move.c

diff --git a/move.c b/move.c
index 37f46d72dbef8dccd44c8b35e40e5c6a6e056c2a..0b8830314672980cc18994f8b8bd0d42928627e8 100644 (file)
--- a/move.c
+++ b/move.c
@@ -57,13 +57,13 @@ int page_down(void)
     if (editbot != filebot) {
        current_y = 0;
        current = editbot;
+       edit_update_top(current);
     } else
        while (current != filebot) {
            current = current->next;
            current_y++;
        }
 
-    edit_update_top(current);
     update_cursor();
     UNSET(KEEP_CUTBUFFER);
     check_statblank();