mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: print: manually increment cursor column
We know we're within bounds, and thus we don't need the extra overhead of term_cursor_right().
This commit is contained in:
parent
466466c19e
commit
b035469a7f
1 changed files with 4 additions and 3 deletions
|
|
@ -2427,9 +2427,10 @@ term_print(struct terminal *term, wchar_t wc, int width)
|
|||
}
|
||||
|
||||
/* Advance cursor */
|
||||
if (term->grid->cursor.point.col < term->cols - 1)
|
||||
term_cursor_right(term, 1);
|
||||
else
|
||||
if (term->grid->cursor.point.col < term->cols - 1) {
|
||||
term->grid->cursor.point.col++;
|
||||
assert(!term->grid->cursor.lcf);
|
||||
} else
|
||||
term->grid->cursor.lcf = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue