(grub_uint8_t *) s, (p - s), 0);
if (! ensure_space (current_linep, size))
- return 0;
+ {
+ grub_free (unicode_msg);
+ return 0;
+ }
grub_memmove (current_linep->buf + screen->column + size,
current_linep->buf + screen->column,
if (! screen->lines[i].pos)
{
grub_print_error ();
+ destroy_screen (screen);
grub_errno = GRUB_ERR_NONE;
return;
}
if (!screen->terms)
{
grub_print_error ();
+ destroy_screen (screen);
grub_errno = GRUB_ERR_NONE;
return;
}
grub_term_output_t term;
grub_uint32_t *unicode_str, *unicode_last_position;
- pos = grub_term_save_pos ();
-
/* TRANSLATORS: This has to fit on one line. It's ok to include few
words but don't write poems. */
grub_utf8_to_ucs4_alloc (_("--MORE--"), &unicode_str,
return;
}
+ pos = grub_term_save_pos ();
+
grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
FOR_ACTIVE_TERM_OUTPUTS(term)