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:
okuji 2002-12-04 00:55:45 +00:00
parent 772e28b8c2
commit ad2df4cd66
2 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -109,8 +109,13 @@ print_entry (int y, int highlight, char *entry)
grub_putchar (' ');
for (x = 3; x < 75; x++)
{
if (*entry && x < 71)
if (*entry && x <= 72)
{
if (x == 72)
grub_putchar (DISP_RIGHT);
else
grub_putchar (*entry++);
}
else
grub_putchar (' ');
}