aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:35:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:35:45 +0000
commit80361ca04e12b65396d27fa1d981f6739861e453 (patch)
treeb5cf4c80bd3f8e1da30031410c64ac4d29290cb1 /terminal.c
parentsixel: oops (diff)
sixel: purge images at current cursor row
When printing a character, or starting a new sixel image, purge all images that cover the cursor's current row.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 493a8ada..5c7b94e5 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2128,6 +2128,8 @@ term_print(struct terminal *term, wchar_t wc, int width)
print_linewrap(term);
print_insert(term, width);
+ sixel_purge_at_cursor(term);
+
/* *Must* get current cell *after* linewrap+insert */
struct row *row = term->grid->cur_row;
struct cell *cell = &row->cells[term->cursor.point.col];