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