mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
refresh vimode cursor
This commit is contained in:
parent
ada54c7b86
commit
358155ac7d
1 changed files with 10 additions and 2 deletions
12
terminal.c
12
terminal.c
|
|
@ -524,8 +524,16 @@ cursor_refresh(struct terminal *term)
|
|||
if (!term->window->is_configured)
|
||||
return;
|
||||
|
||||
term->grid->cur_row->cells[term->grid->cursor.point.col].attrs.clean = 0;
|
||||
term->grid->cur_row->dirty = true;
|
||||
if(term->is_vimming) {
|
||||
struct row *const row =
|
||||
grid_row_in_view(term->grid, term->vimode.cursor.row);
|
||||
row->cells[term->vimode.cursor.col].attrs.clean = 0;
|
||||
row->dirty = true;
|
||||
} else {
|
||||
struct row *const row = term->grid->cur_row;
|
||||
row->cells[term->grid->cursor.point.col].attrs.clean = 0;
|
||||
row->dirty = true;
|
||||
}
|
||||
render_refresh(term);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue