diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-12 11:08:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-12 11:08:19 +0000 |
| commit | fe6c228b1302358c4f116f59c27502c120164fd3 (patch) | |
| tree | 8a6d6bcd1a48db268ee1423e93f35fe2af5a355b | |
| parent | render: remove most of the special handling of cursor rendering (diff) | |
render: don't render cursor when it has been explicitly hidden
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
