mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Merge branch 'term-print-assume-col-can-be-incremented'
This commit is contained in:
commit
d8f0e701b5
1 changed files with 4 additions and 4 deletions
|
|
@ -2848,11 +2848,11 @@ term_print(struct terminal *term, wchar_t wc, int width)
|
|||
}
|
||||
|
||||
/* Advance cursor */
|
||||
if (term->grid->cursor.point.col < term->cols - 1) {
|
||||
term->grid->cursor.point.col++;
|
||||
xassert(!term->grid->cursor.lcf);
|
||||
} else
|
||||
if (unlikely(++term->grid->cursor.point.col >= term->cols)) {
|
||||
term->grid->cursor.lcf = true;
|
||||
term->grid->cursor.point.col--;
|
||||
} else
|
||||
xassert(!term->grid->cursor.lcf);
|
||||
}
|
||||
|
||||
enum term_surface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue