mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-10 05:33:51 -04: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 */
|
/* Advance cursor */
|
||||||
if (term->grid->cursor.point.col < term->cols - 1)
|
if (term->grid->cursor.point.col < term->cols - 1) {
|
||||||
term_cursor_right(term, 1);
|
term->grid->cursor.point.col++;
|
||||||
else
|
assert(!term->grid->cursor.lcf);
|
||||||
|
} else
|
||||||
term->grid->cursor.lcf = true;
|
term->grid->cursor.lcf = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue