summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-12 18:32:00 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-12 18:32:00 +0100
commit2f27aab8e68c48a1b8a51715e1009d572f8e13b5 (patch)
tree8f8e50e8d156dd9abe02a3e40bc0dcda61537311 /src/gui.c
parent60e73f2acc890f07056fa1bea8dbe89d26918b3e (diff)
patch 8.0.1294: GUI: get stuck when splitting a terminal windowv8.0.1294
Problem: GUI: get stuck when splitting a terminal window. Solution: Stop blinking when values become zero. (Hirohito Higashi)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 2ce3009278..e6cc544dce 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1118,6 +1118,8 @@ gui_update_cursor(
gui_mch_set_blinking(shape->blinkwait,
shape->blinkon,
shape->blinkoff);
+ if (shape->blinkoff == 0 || shape->blinkon == 0 || shape->blinkoff == 0)
+ gui_mch_stop_blink();
#ifdef FEAT_TERMINAL
if (shape_bg != INVALCOLOR)
{