dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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