From a59a9826fd56efe350933ef73cba3a42b97a52b9 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 24 Apr 2013 15:07:24 +0200 Subject: [PATCH] * grub-core/normal/menu_text.c (print_entry): Put an asterisk in front of chosen entry to mark it even if highlighting is lost. --- ChangeLog | 5 +++++ grub-core/normal/menu_text.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 58543267b..7e297888e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-24 Vladimir Serbinenko + + * 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 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c index 0031b0c1d..e1d3c8fcb 100644 --- a/grub-core/normal/menu_text.c +++ b/grub-core/normal/menu_text.c @@ -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);