summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authornicm <nicm>2021-03-12 08:39:17 +0000
committernicm <nicm>2021-03-12 08:39:17 +0000
commite8224fb0d123ca9042b0703a35e1a33f0787d327 (patch)
tree2b51e29110d03fad9e2662819eda3be1909a32f6 /screen.c
parentee0df1b8f8a9099fbd67a73c9fb20b89c64d6106 (diff)
Fix so tmux correctly sends the cvvis (cursor very visible) capability
rather than sending it and then immediately undoing it with cnorm. Also turn it off when the cursor shape is changed like xterm.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 2cdbec62..97ccdeec 100644
--- a/screen.c
+++ b/screen.c
@@ -154,8 +154,10 @@ screen_reset_tabs(struct screen *s)
void
screen_set_cursor_style(struct screen *s, u_int style)
{
- if (style <= 6)
+ if (style <= 6) {
s->cstyle = style;
+ s->mode &= ~MODE_BLINKING;
+ }
}
/* Set screen cursor colour. */