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