mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
vt: handle cursor-at-right-edge
When printing to the right-most-cell, don't advance the cursor. Instead, set a flag that indicates that the *next* print should line-wrap.
This commit is contained in:
parent
4585df532c
commit
963b266cce
3 changed files with 11 additions and 2 deletions
1
grid.c
1
grid.c
|
|
@ -25,6 +25,7 @@ grid_cursor_move(struct grid *grid, int cols)
|
|||
grid->cells[new_cursor].dirty = true;
|
||||
grid->cursor = new_cursor;
|
||||
grid->dirty = true;
|
||||
grid->print_needs_wrap = false;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue