summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-13 21:10:04 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-13 21:10:04 +0100
commit1dcada1933acdab93ac423951b5958125343833d (patch)
tree3ad0b2d1eafda5e928cb2e4149abc200d05b88a3 /src/gui.c
parente42a6d250907e278707753d7d1ba91ffc2471db0 (diff)
patch 8.0.1296: checking the same condition twicev8.0.1296
Problem: Checking the same condition twice. (John Marriott) Solution: Check blinkwait.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index e6cc544dce..7ef1c95341 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1118,7 +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)
+ if (shape->blinkwait == 0 || shape->blinkon == 0
+ || shape->blinkoff == 0)
gui_mch_stop_blink();
#ifdef FEAT_TERMINAL
if (shape_bg != INVALCOLOR)