a5bd9f6
From a6d176e62f7b6c03e680287972b95dae59bef125 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Wed, 24 Apr 2013 15:07:24 +0200
a5bd9f6
Subject: [PATCH 340/364] 	* grub-core/normal/menu_text.c (print_entry):
a5bd9f6
 Put an asterisk 	in front of chosen entry to mark it even if
a5bd9f6
 highlighting is lost.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                    | 5 +++++
a5bd9f6
 grub-core/normal/menu_text.c | 4 +++-
a5bd9f6
 2 files changed, 8 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 5854326..7e29788 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,5 +1,10 @@
a5bd9f6
 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
+	* grub-core/normal/menu_text.c (print_entry): Put an asterisk
a5bd9f6
+	in front of chosen entry to mark it even if highlighting is lost.
a5bd9f6
+
a5bd9f6
+2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
 	* grub-core/loader/i386/linux.c (grub_linux_boot): Default to
a5bd9f6
 	gfxpayload=keep if cbfb is active.
a5bd9f6
 
a5bd9f6
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
a5bd9f6
index 0031b0c..e1d3c8f 100644
a5bd9f6
--- a/grub-core/normal/menu_text.c
a5bd9f6
+++ b/grub-core/normal/menu_text.c
a5bd9f6
@@ -242,7 +242,7 @@ print_entry (int y, int highlight, grub_menu_entry_t entry,
a5bd9f6
 	|| unicode_title[i] == '\r' || unicode_title[i] == '\e')
a5bd9f6
       unicode_title[i] = ' ';
a5bd9f6
 
a5bd9f6
-  for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 1, i = 0;
a5bd9f6
+  for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 2, i = 0;
a5bd9f6
        x < (int) (GRUB_TERM_LEFT_BORDER_X + grub_term_border_width (term)
a5bd9f6
 		  - GRUB_TERM_MARGIN);)
a5bd9f6
     {
a5bd9f6
@@ -269,6 +269,8 @@ print_entry (int y, int highlight, grub_menu_entry_t entry,
a5bd9f6
 	break;
a5bd9f6
     }
a5bd9f6
 
a5bd9f6
+  grub_putcode (highlight ? '*' : ' ', term);
a5bd9f6
+
a5bd9f6
   grub_print_ucs4 (unicode_title,
a5bd9f6
 		   unicode_title + last_printed, 0, 0, term);
a5bd9f6
 
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6