[grub2/f19] Fix linewrapping in edit menu.
Peter Jones
pjones at fedoraproject.org
Fri Jun 21 18:47:05 UTC 2013
commit 38f72d25e9e1431334a5d9b1d23e04ac75622217
Author: Peter Jones <pjones at redhat.com>
Date: Fri Jun 21 14:46:49 2013 -0400
Fix linewrapping in edit menu.
Resolves: rhbz #976643
...ad-of-1-for-our-right-hand-margin-so-line.patch | 27 ++++++++++++++++++++
grub2.spec | 5 +++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/0484-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch b/0484-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
new file mode 100644
index 0000000..096b32a
--- /dev/null
+++ b/0484-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
@@ -0,0 +1,27 @@
+From 8c62c84f2b85bebf0a3f5fe588aa19e9d113996a Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones at redhat.com>
+Date: Fri, 21 Jun 2013 14:44:08 -0400
+Subject: [PATCH] Use -2 instead of -1 for our right-hand margin, so
+ linewrapping works (#976643).
+
+Signed-off-by: Peter Jones <grub2-owner at fedoraproject.org>
+---
+ grub-core/normal/menu_text.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
+index 851ed13..95b90ea 100644
+--- a/grub-core/normal/menu_text.c
++++ b/grub-core/normal/menu_text.c
+@@ -286,7 +286,7 @@ grub_menu_init_page (int nested, int edit,
+
+ geo->border = 0;
+ geo->first_entry_x = 0; /* no margin */
+- geo->entry_width = grub_term_width (term) - 1;
++ geo->entry_width = grub_term_width (term) - 2;
+
+ geo->first_entry_y = 3; /* three empty lines*/
+
+--
+1.8.2.1
+
diff --git a/grub2.spec b/grub2.spec
index aada8a0..a71366d 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -537,6 +537,7 @@ Patch0480: 0480-Disable-GRUB-video-support-for-IBM-power-machines.patch
Patch0481: 0481-Revert-Add-bootpath-device-to-the-list-967862.patch
Patch0482: 0482-Fix-net_bootp-cmd-crash-when-there-isn-t-network-car.patch
Patch0483: 0483-Initialize-grub_file_filters_-all-enabled.patch
+Patch0484: 0484-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
BuildRequires: flex bison binutils python
BuildRequires: ncurses-devel xz-devel
@@ -922,6 +923,10 @@ fi
%{_datarootdir}/grub/themes/
%changelog
+* Fri Jun 21 2013 Peter Jones <pjones at redhat.com> - 2.00-21
+- Fix linewrapping in edit menu.
+ Resolves: rhbz #976643
+
* Thu Jun 20 2013 Peter Jones <pjones at redhat.com> - 2.00-21
- Fix obsoletes to pull in -starfield-theme subpackage when it should.
More information about the scm-commits
mailing list