[1815] 2008-08-17 Carles Pina i Estany <[email protected]>

Felix Zielcke <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1815
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1815
Author:   fzielcke
Date:     2008-08-17 10:30:25 +0000 (Sun, 17 Aug 2008)

Log Message:
-----------
2008-08-17  Carles Pina i Estany  <[email protected]>

        * menu/normal.c (run_menu): Add Home and End keys in grub-menu.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/normal/menu.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-08-17 09:12:59 UTC (rev 1814)
+++ trunk/grub2/ChangeLog	2008-08-17 10:30:25 UTC (rev 1815)
@@ -1,3 +1,7 @@
+2008-08-17  Carles Pina i Estany  <[email protected]>
+
+        * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
+
 2008-08-17  Felix Zielcke  <[email protected]>
 
 	* gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,

Modified: trunk/grub2/normal/menu.c
===================================================================
--- trunk/grub2/normal/menu.c	2008-08-17 09:12:59 UTC (rev 1814)
+++ trunk/grub2/normal/menu.c	2008-08-17 10:30:25 UTC (rev 1815)
@@ -405,6 +405,22 @@
 	  
 	  switch (c)
 	    {
+	    case GRUB_TERM_HOME:
+	      first = 0;
+	      offset = 0;
+	      print_entries (menu, first, offset);
+	      break;
+
+	    case GRUB_TERM_END:
+	      offset = menu->size - 1;
+	      if (offset > GRUB_TERM_NUM_ENTRIES - 1)
+		{
+		  first = offset - (GRUB_TERM_NUM_ENTRIES - 1);
+		  offset = GRUB_TERM_NUM_ENTRIES - 1;
+		}
+		print_entries (menu, first, offset);
+	      break;
+
 	    case 16:
 	    case '^':
 	      if (offset > 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.