# HG changeset patch # User Christian Brabandt # Date 1510604103 -3600 # Node ID 9ac41c3148cea7068c8346544e78d3b6b1b583b4 # Parent e0c190d254b4b0be478049d01fbd3a1a449fd125 patch 8.0.1296: checking the same condition twice commit https://github.com/vim/vim/commit/1dcada1933acdab93ac423951b5958125343833d Author: Bram Moolenaar Date: Mon Nov 13 21:10:04 2017 +0100 patch 8.0.1296: checking the same condition twice Problem: Checking the same condition twice. (John Marriott) Solution: Check blinkwait. diff --git a/src/gui.c b/src/gui.c --- 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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1296, +/**/ 1295, /**/ 1294,