mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: resize: only stay on current row if col is within grid width
This commit is contained in:
parent
69a633221f
commit
c28c0ab9c2
1 changed files with 3 additions and 1 deletions
4
render.c
4
render.c
|
|
@ -1227,7 +1227,9 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
|||
|
||||
while (cursor_row < 0)
|
||||
cursor_row += term->grid->num_rows;
|
||||
cursor_row--;
|
||||
|
||||
if (term->cursor.point.col < term->cols - 1)
|
||||
cursor_row--;
|
||||
|
||||
assert(cursor_row < term->rows);
|
||||
term_cursor_to(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue