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