mirror of
https://github.com/tmux/tmux.git
synced 2025-04-17 09:18:48 +00:00
Correctly remove when not visible.
This commit is contained in:
parent
86c5098a88
commit
62c0280b23
3
image.c
3
image.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user