aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-03 12:14:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-03 12:14:46 +0000
commit5e8c75aa38ee0fc394556e0759b42b1713948412 (patch)
treed3e44b42caf117cc9052208cb25ecfbc39deed6f /main.c
parentscrolling: initial reverse scrolling support - no scroll regions (diff)
csi: implement 'civis' (show/hide cursor)
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 460f36e4..a29f5d8c 100644
--- a/main.c
+++ b/main.c
@@ -134,7 +134,8 @@ grid_render_update(struct context *c, struct buffer *buf, const struct damage *d
/* Cursor here? */
bool has_cursor
- = c->term.cursor.linear == linear_cursor - c->term.grid->offset;
+ = (!c->term.hide_cursor &&
+ (c->term.cursor.linear == linear_cursor - c->term.grid->offset));
int x = col * c->term.cell_width;
int y = row * c->term.cell_height;