dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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