Skip to content

Commit

Permalink
patch 8.0.1296: checking the same condition twice
Browse files Browse the repository at this point in the history
Problem:    Checking the same condition twice. (John Marriott)
Solution:   Check blinkwait.
  • Loading branch information
brammool committed Nov 13, 2017
1 parent e42a6d2 commit 1dcada1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1296,
/**/
1295,
/**/
Expand Down

0 comments on commit 1dcada1

Please sign in to comment.