nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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