Blame SOURCES/0341-grub-core-normal-menu_text.c-print_entry-Put-an-aste.patch

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