* grub-core/normal/menu_entry.c (update_screen): remove

unused variable `off' which caused scroll down arrow to be always shown.
This commit is contained in:
Andrey Borzenkov 2013-02-25 22:53:40 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 958bfd2067
commit f1a19118e5
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/normal/menu_entry.c (update_screen): remove
unused variable `off' which caused scroll down arrow to be always shown.
2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/normal/menu_entry.c (insert_string): fix off by one

View file

@ -243,7 +243,6 @@ update_screen (struct screen *screen, struct per_term_screen *term_screen,
do
{
int off = 0;
struct grub_term_pos **pos;
if (linep >= screen->lines + screen->num_lines)
@ -301,7 +300,7 @@ update_screen (struct screen *screen, struct per_term_screen *term_screen,
y += get_logical_num_lines (linep, term_screen);
if (y >= term_screen->num_entries)
{
if (off <= linep->len || i + 1 < screen->num_lines)
if (i + 1 < screen->num_lines)
down_flag = 1;
}