Skip to content

Commit 1dcada1

Browse files
committed
patch 8.0.1296: checking the same condition twice
Problem: Checking the same condition twice. (John Marriott) Solution: Check blinkwait.
1 parent e42a6d2 commit 1dcada1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/gui.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,8 @@ gui_update_cursor(
11181118
gui_mch_set_blinking(shape->blinkwait,
11191119
shape->blinkon,
11201120
shape->blinkoff);
1121-
if (shape->blinkoff == 0 || shape->blinkon == 0 || shape->blinkoff == 0)
1121+
if (shape->blinkwait == 0 || shape->blinkon == 0
1122+
|| shape->blinkoff == 0)
11221123
gui_mch_stop_blink();
11231124
#ifdef FEAT_TERMINAL
11241125
if (shape_bg != INVALCOLOR)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1296,
769771
/**/
770772
1295,
771773
/**/

0 commit comments

Comments
 (0)