nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0031-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Peter Jones <pjones@redhat.com>
5593c8
Date: Fri, 21 Jun 2013 14:44:08 -0400
5593c8
Subject: [PATCH] Use -2 instead of -1 for our right-hand margin, so
5593c8
 linewrapping works (#976643).
5593c8
5593c8
Signed-off-by: Peter Jones <grub2-owner@fedoraproject.org>
5593c8
---
5593c8
 grub-core/normal/menu_text.c | 2 +-
5593c8
 1 file changed, 1 insertion(+), 1 deletion(-)
5593c8
5593c8
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
1c6ba0
index cbd62f714c..26e9e82042 100644
5593c8
--- a/grub-core/normal/menu_text.c
5593c8
+++ b/grub-core/normal/menu_text.c
5593c8
@@ -334,7 +334,7 @@ grub_menu_init_page (int nested, int edit,
5593c8
 
5593c8
   geo->border = 0;
5593c8
   geo->first_entry_x = 0; /* no margin */
5593c8
-  geo->entry_width = grub_term_width (term) - 1;
5593c8
+  geo->entry_width = grub_term_width (term) - 2;
5593c8
 
5593c8
   geo->first_entry_y = 3; /* three empty lines*/
5593c8