* grub-core/normal/menu_text.c (print_entry): Put an asterisk

in front of chosen entry to mark it even if highlighting is lost.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-24 15:07:24 +02:00
parent 1a40f80c98
commit a59a9826fd
2 changed files with 8 additions and 1 deletions

View file

@ -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

View 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);