term: line-wrap: need to update grid->cur_row when we did *not* scroll

This commit is contained in:
Daniel Eklöf 2020-07-14 12:01:00 +02:00
parent 635698722e
commit 98ebb99be3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2360,6 +2360,7 @@ print_linewrap(struct terminal *term)
else {
assert(term->grid->cursor.point.row < term->scroll_region.end - 1);
term->grid->cursor.point.row++;
term->grid->cur_row = grid_row(term->grid, term->grid->cursor.point.row);
}
term->grid->cursor.point.col = 0;