Correctly remove when not visible.

pull/3363/head
Nicholas Marriott 2019-12-05 08:48:58 +00:00
parent 86c5098a88
commit 62c0280b23
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,7 @@ image_scroll_up(struct screen *s, u_int lines)
redraw = 1;
continue;
}
if (im->py + im->sy < lines) {
if (im->py + im->sy <= lines) {
image_free(im);
redraw = 1;
continue;
@ -127,6 +127,7 @@ image_scroll_up(struct screen *s, u_int lines)
im->data = new;
im->py = 0;
sixel_size_in_cells(im->data, &im->sx, &im->sy);
redraw = 1;
}
return (redraw);