2002-12-04 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/stage2.c (print_entry): Put a right arrow, if the entry is longer than 71 characters. Reported by Pavel Roskin.
This commit is contained in:
parent
772e28b8c2
commit
ad2df4cd66
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-12-04 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* 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 <okuji@enbug.org>
|
||||
|
||||
* stage2/disk_io.c (set_device): If '(n' is given, add 'd' into
|
||||
|
|
|
@ -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 (' ');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue