summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-31 21:10:01 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-31 21:10:01 +0100
commit1dd45fb4f3371f0256653b2186c8b4b3d26b3f41 (patch)
tree1a98ce1bfba438843ef01ee54267da7fdd37b47e /src/gui.c
parenta338adcf222b6a24e26ea5ae6a2ad27f914acb38 (diff)
patch 8.0.1450: GUI: endless loop when stopping cursor blinkingv8.0.1450
Problem: Endless loop when gui_mch_stop_blink() is called while blink_state is BLINK_OFF. (zdohnal) Solution: Avoid calling gui_update_cursor() recursively.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index 45bf49ac9c..671f559f6b 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1124,7 +1124,7 @@ gui_update_cursor(
shape->blinkoff);
if (shape->blinkwait == 0 || shape->blinkon == 0
|| shape->blinkoff == 0)
- gui_mch_stop_blink();
+ gui_mch_stop_blink(FALSE);
#ifdef FEAT_TERMINAL
if (shape_bg != INVALCOLOR)
{
@@ -2982,7 +2982,7 @@ gui_wait_for_chars(long wtime, int tb_change_cnt)
* for showmatch() */
gui_mch_start_blink();
retval = gui_wait_for_chars_or_timer(wtime);
- gui_mch_stop_blink();
+ gui_mch_stop_blink(TRUE);
return retval;
}
@@ -3029,7 +3029,7 @@ gui_wait_for_chars(long wtime, int tb_change_cnt)
retval = gui_wait_for_chars_or_timer(-1L);
}
- gui_mch_stop_blink();
+ gui_mch_stop_blink(TRUE);
return retval;
}