mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
term: line-wrap: need to update grid->cur_row when we did *not* scroll
This commit is contained in:
parent
635698722e
commit
98ebb99be3
1 changed files with 1 additions and 0 deletions
|
|
@ -2360,6 +2360,7 @@ print_linewrap(struct terminal *term)
|
||||||
else {
|
else {
|
||||||
assert(term->grid->cursor.point.row < term->scroll_region.end - 1);
|
assert(term->grid->cursor.point.row < term->scroll_region.end - 1);
|
||||||
term->grid->cursor.point.row++;
|
term->grid->cursor.point.row++;
|
||||||
|
term->grid->cur_row = grid_row(term->grid, term->grid->cursor.point.row);
|
||||||
}
|
}
|
||||||
|
|
||||||
term->grid->cursor.point.col = 0;
|
term->grid->cursor.point.col = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue