mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -05:00
render: don't render cursor when it has been explicitly hidden
This commit is contained in:
parent
2bdd0a7c80
commit
fe6c228b13
1 changed files with 2 additions and 2 deletions
4
render.c
4
render.c
|
|
@ -885,7 +885,7 @@ render_worker_thread(void *_ctx)
|
|||
assert(buf != NULL);
|
||||
|
||||
struct row *row = grid_row_in_view(term->grid, row_no);
|
||||
int cursor_col = cursor.row == row_no ? cursor.col : -1;
|
||||
int cursor_col = !term->hide_cursor && cursor.row == row_no ? cursor.col : -1;
|
||||
|
||||
render_row(term, buf->pix[my_id], row, row_no, cursor_col);
|
||||
break;
|
||||
|
|
@ -1463,7 +1463,7 @@ grid_render(struct terminal *term)
|
|||
cursor.row -= term->grid->view;
|
||||
cursor.row &= term->grid->num_rows - 1;
|
||||
|
||||
int cursor_col = cursor.row == r ? cursor.col : -1;
|
||||
int cursor_col = !term->hide_cursor && cursor.row == r ? cursor.col : -1;
|
||||
render_row(term, buf->pix[0], row, r, cursor_col);
|
||||
row->dirty = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue