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