fix crash on cursor refresh

This commit is contained in:
Piotr Kocia 2025-04-05 15:14:50 +02:00
parent 4a0c7d6f0b
commit 19e8dad788

View file

@ -525,8 +525,7 @@ cursor_refresh(struct terminal *term)
return;
if(term->vimode.active) {
struct row *const row =
grid_row_in_view(term->grid, term->vimode.cursor.row);
struct row *const row = grid_row(term->grid, term->vimode.cursor.row);
row->cells[term->vimode.cursor.col].attrs.clean = 0;
row->dirty = true;
} else {