dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0035-Use-the-correct-indentation-for-the-term-help-text.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: William Jon McCann <william.jon.mccann@gmail.com>
d9d99f
Date: Fri, 7 Jun 2013 14:08:49 -0400
d9d99f
Subject: [PATCH] Use the correct indentation for the term help text
d9d99f
d9d99f
That is consistent with the menu help text
d9d99f
---
d9d99f
 grub-core/normal/main.c | 4 ++--
d9d99f
 1 file changed, 2 insertions(+), 2 deletions(-)
d9d99f
d9d99f
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
d9d99f
index f57b7508a76..0ce59fdc3f0 100644
d9d99f
--- a/grub-core/normal/main.c
d9d99f
+++ b/grub-core/normal/main.c
d9d99f
@@ -426,8 +426,8 @@ grub_normal_reader_init (int nested)
d9d99f
     grub_normal_init_page (term, 1);
d9d99f
     grub_term_setcursor (term, 1);
d9d99f
 
d9d99f
-    if (grub_term_width (term) > 3 + STANDARD_MARGIN + 20)
d9d99f
-      grub_print_message_indented (msg_formatted, 3, STANDARD_MARGIN, term);
d9d99f
+    if (grub_term_width (term) > 2 * STANDARD_MARGIN + 20)
d9d99f
+      grub_print_message_indented (msg_formatted, STANDARD_MARGIN, STANDARD_MARGIN, term);
d9d99f
     else
d9d99f
       grub_print_message_indented (msg_formatted, 0, 0, term);
d9d99f
     grub_putcode ('\n', term);