]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/menu_text.c (print_entry): Put an asterisk
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 24 Apr 2013 13:07:24 +0000 (15:07 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 24 Apr 2013 13:07:24 +0000 (15:07 +0200)
in front of chosen entry to mark it even if highlighting is lost.

ChangeLog
grub-core/normal/menu_text.c

index 58543267b5d28ecea2c070b2e630740ea5f53989..7e297888e55a0e385d291609686dcf2211c86d06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/menu_text.c (print_entry): Put an asterisk
+       in front of chosen entry to mark it even if highlighting is lost.
+
 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
index 0031b0c1d5c0c551fcf2b365593fe7753d990bfd..e1d3c8fcbdc48a88e9579987d97ca0b6309f8188 100644 (file)
@@ -242,7 +242,7 @@ print_entry (int y, int highlight, grub_menu_entry_t entry,
        || unicode_title[i] == '\r' || unicode_title[i] == '\e')
       unicode_title[i] = ' ';
 
-  for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 1, i = 0;
+  for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 2, i = 0;
        x < (int) (GRUB_TERM_LEFT_BORDER_X + grub_term_border_width (term)
                  - GRUB_TERM_MARGIN);)
     {
@@ -269,6 +269,8 @@ print_entry (int y, int highlight, grub_menu_entry_t entry,
        break;
     }
 
+  grub_putcode (highlight ? '*' : ' ', term);
+
   grub_print_ucs4 (unicode_title,
                   unicode_title + last_printed, 0, 0, term);