mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
fix partially stale display.
This commit is contained in:
1 parent
f95d1f117a
commit
00d41dee71
2 files changed
+10
-1
No files matched your search
@@ -309,12 +309,16 @@ update_screen (struct screen *screen, struct per_term_screen *term_screen,
|
||||
{
|
||||
int column;
|
||||
int off = 0;
|
||||
int full_len;
|
||||
|
||||
if (linep >= screen->lines + screen->num_lines)
|
||||
break;
|
||||
|
||||
full_len = grub_getstringwidth (linep->buf, linep->buf + linep->len,
|
||||
term_screen->term);
|
||||
|
||||
for (column = 0;
|
||||
column <= linep->len
|
||||
column <= full_len
|
||||
&& y < term_screen->num_entries;
|
||||
column += grub_term_entry_width (term_screen->term), y++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user