|
|
8e15ce |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
8e15ce |
From: William Jon McCann <william.jon.mccann@gmail.com>
|
|
|
8e15ce |
Date: Fri, 7 Jun 2013 10:52:32 -0400
|
|
|
8e15ce |
Subject: [PATCH] Use the standard margin for the timeout string
|
|
|
8e15ce |
|
|
|
8e15ce |
So that it aligns with the other messages
|
|
|
8e15ce |
---
|
|
|
8e15ce |
grub-core/normal/menu_text.c | 6 +++---
|
|
|
8e15ce |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
8e15ce |
|
|
|
8e15ce |
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
|
|
|
8e15ce |
index e72ed438ba3..ca135624356 100644
|
|
|
8e15ce |
--- a/grub-core/normal/menu_text.c
|
|
|
8e15ce |
+++ b/grub-core/normal/menu_text.c
|
|
|
8e15ce |
@@ -372,7 +372,7 @@ grub_menu_init_page (int nested, int edit,
|
|
|
8e15ce |
if (bottom_message)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
grub_term_gotoxy (term,
|
|
|
8e15ce |
- (struct grub_term_coordinate) { GRUB_TERM_MARGIN,
|
|
|
8e15ce |
+ (struct grub_term_coordinate) { STANDARD_MARGIN,
|
|
|
8e15ce |
geo->timeout_y });
|
|
|
8e15ce |
|
|
|
8e15ce |
print_message (nested, edit, term, 0);
|
|
|
8e15ce |
@@ -407,14 +407,14 @@ menu_text_print_timeout (int timeout, void *dataptr)
|
|
|
8e15ce |
if (data->timeout_msg == TIMEOUT_UNKNOWN)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
data->timeout_msg = grub_print_message_indented_real (msg_translated,
|
|
|
8e15ce |
- 3, 1, data->term, 1)
|
|
|
8e15ce |
+ STANDARD_MARGIN, 1, data->term, 1)
|
|
|
8e15ce |
<= data->geo.timeout_lines ? TIMEOUT_NORMAL : TIMEOUT_TERSE;
|
|
|
8e15ce |
if (data->timeout_msg == TIMEOUT_TERSE)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
grub_free (msg_translated);
|
|
|
8e15ce |
msg_translated = grub_xasprintf (_("%ds"), timeout);
|
|
|
8e15ce |
if (grub_term_width (data->term) < 10)
|
|
|
8e15ce |
- data->timeout_msg = TIMEOUT_TERSE_NO_MARGIN;
|
|
|
8e15ce |
+ data->timeout_msg = STANDARD_MARGIN;
|
|
|
8e15ce |
}
|
|
|
8e15ce |
}
|
|
|
8e15ce |
|