mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
resize: cursor reset was off-by-one when cursor was outside new size
This commit is contained in:
parent
1c737fa7bd
commit
4a35aa9724
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
|
@ -568,8 +568,8 @@ resize(struct context *c, int width, int height)
|
|||
|
||||
term_cursor_to(
|
||||
&c->term,
|
||||
min(c->term.cursor.row, c->term.rows),
|
||||
min(c->term.cursor.col, c->term.cols));
|
||||
min(c->term.cursor.row, c->term.rows - 1),
|
||||
min(c->term.cursor.col, c->term.cols - 1));
|
||||
|
||||
term_damage_all(&c->term);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue