]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/term.c (print_more): Make \r or \n scroll one
authorColin Watson <cjwatson@ubuntu.com>
Sat, 18 Dec 2010 17:37:48 +0000 (17:37 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Sat, 18 Dec 2010 17:37:48 +0000 (17:37 +0000)
line, and other keys scroll an entire page (previous handling was
for \r and \n to scroll a page and other keys to scroll two lines).

ChangeLog
grub-core/normal/term.c

index d7091f27c81141a1702f513676bd77a3fa727a40..3f15bcc7bc47f8d300a939d454a39da66709c8ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-18  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/normal/term.c (print_more): Make \r or \n scroll one
+       line, and other keys scroll an entire page (previous handling was
+       for \r and \n to scroll a page and other keys to scroll two lines).
+
 2010-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
index 00721c4473ee106c7884d98830f496869a26594f..a1aa3d783758c4316cbae3b6eb7424fba9caa6da 100644 (file)
@@ -91,16 +91,16 @@ print_more (void)
   grub_term_restore_pos (pos);
   grub_free (pos);
 
-  /* Scroll one lines or an entire page, depending on the key.  */
+  /* Scroll one line or an entire page, depending on the key.  */
 
   if (key == '\r' || key =='\n')
-    grub_normal_reset_more ();
-  else
     {
       static struct term_state *state;
       for (state = term_states; state; state = state->next)
-       state->num_lines -= 2;
+       state->num_lines--;
     }
+  else
+    grub_normal_reset_more ();
 }
 
 void