Permalink
Browse files

patch 8.0.1296: checking the same condition twice

Problem:    Checking the same condition twice. (John Marriott)
Solution:   Check blinkwait.
  • Loading branch information...
brammool committed Nov 13, 2017
1 parent e42a6d2 commit 1dcada1933acdab93ac423951b5958125343833d
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/gui.c
  2. +2 −0 src/version.c
View
@@ -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)
View
@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1296,
/**/
1295,
/**/

0 comments on commit 1dcada1

Please sign in to comment.