diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-01-31 21:10:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-01-31 21:10:01 +0100 |
commit | 1dd45fb4f3371f0256653b2186c8b4b3d26b3f41 (patch) | |
tree | 1a98ce1bfba438843ef01ee54267da7fdd37b47e /src/gui_mac.c | |
parent | a338adcf222b6a24e26ea5ae6a2ad27f914acb38 (diff) | |
download | vim-git-1dd45fb4f3371f0256653b2186c8b4b3d26b3f41.tar.gz |
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_mac.c')
-rw-r--r-- | src/gui_mac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c index 97cbf8018..db9f9597f 100644 --- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -5156,9 +5156,10 @@ gui_mch_set_blinking(long wait, long on, long off) * Stop the cursor blinking. Show the cursor if it wasn't shown. */ void -gui_mch_stop_blink(void) +gui_mch_stop_blink(int may_call_gui_update_cursor) { - gui_update_cursor(TRUE, FALSE); + if (may_call_gui_update_cursor) + gui_update_cursor(TRUE, FALSE); /* TODO: TODO: TODO: TODO: */ /* gui_w32_rm_blink_timer(); if (blink_state == BLINK_OFF) |