From ad2df4cd66fb056f750d9818298090c02ec96220 Mon Sep 17 00:00:00 2001 From: okuji Date: Wed, 4 Dec 2002 00:55:45 +0000 Subject: [PATCH] 2002-12-04 Yoshinori K. Okuji * stage2/stage2.c (print_entry): Put a right arrow, if the entry is longer than 71 characters. Reported by Pavel Roskin. --- ChangeLog | 5 +++++ stage2/stage2.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33b71db76..41ff3d97a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-12-04 Yoshinori K. Okuji + + * stage2/stage2.c (print_entry): Put a right arrow, if the entry + is longer than 71 characters. Reported by Pavel Roskin. + 2002-12-04 Yoshinori K. Okuji * stage2/disk_io.c (set_device): If '(n' is given, add 'd' into diff --git a/stage2/stage2.c b/stage2/stage2.c index ccb86e1b9..fc51125bf 100644 --- a/stage2/stage2.c +++ b/stage2/stage2.c @@ -109,8 +109,13 @@ print_entry (int y, int highlight, char *entry) grub_putchar (' '); for (x = 3; x < 75; x++) { - if (*entry && x < 71) - grub_putchar (*entry++); + if (*entry && x <= 72) + { + if (x == 72) + grub_putchar (DISP_RIGHT); + else + grub_putchar (*entry++); + } else grub_putchar (' '); }