mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
term: print: linewrap + insert *before* inserting SPACERS
Otherwise we end up overwriting the character in the last column
This commit is contained in:
parent
df2927e088
commit
6d7aba3ea0
1 changed files with 4 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue