aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-14 15:03:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-14 15:03:20 +0000
commit6d7aba3ea07b9a7a584dcb027fa8f0f26c5c4fd5 (patch)
tree0143d55cd4211f4e8879c4ce6c72356d027d94ff
parentterm: print: write special value CELL_MULT_COL_SPACER to extra cells (diff)
term: print: linewrap + insert *before* inserting SPACERS
Otherwise we end up overwriting the character in the last column
-rw-r--r--terminal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 2a232de3..e9bb0812 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2393,6 +2393,9 @@ term_print(struct terminal *term, wchar_t wc, int width)
if (unlikely(width <= 0))
return;
+ print_linewrap(term);
+ print_insert(term, width);
+
if (unlikely(width > 1) &&
term->grid->cursor.point.col + width > term->cols)
{
@@ -2406,11 +2409,9 @@ term_print(struct terminal *term, wchar_t wc, int width)
/* And force a line-wrap */
term->grid->cursor.lcf = 1;
+ print_linewrap(term);
}
- print_linewrap(term);
- print_insert(term, width);
-
sixel_overwrite_at_cursor(term, width);
/* *Must* get current cell *after* linewrap+insert */