comparison src/gui.c @ 12839:9ac41c3148ce v8.0.1296

patch 8.0.1296: checking the same condition twice commit https://github.com/vim/vim/commit/1dcada1933acdab93ac423951b5958125343833d Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Nov 2017 21:15:03 +0100
parents a46dfb3935cf
children ebb4f6c93598
comparison
equal deleted inserted replaced
12838:e0c190d254b4 12839:9ac41c3148ce
1116 cbg = INVALCOLOR; 1116 cbg = INVALCOLOR;
1117 cattr = HL_INVERSE; 1117 cattr = HL_INVERSE;
1118 gui_mch_set_blinking(shape->blinkwait, 1118 gui_mch_set_blinking(shape->blinkwait,
1119 shape->blinkon, 1119 shape->blinkon,
1120 shape->blinkoff); 1120 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)
1122 gui_mch_stop_blink(); 1123 gui_mch_stop_blink();
1123 #ifdef FEAT_TERMINAL 1124 #ifdef FEAT_TERMINAL
1124 if (shape_bg != INVALCOLOR) 1125 if (shape_bg != INVALCOLOR)
1125 { 1126 {
1126 cattr = 0; 1127 cattr = 0;