mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.1296: checking the same condition twice
Problem: Checking the same condition twice. (John Marriott) Solution: Check blinkwait.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user