0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

patch 8.0.1450: GUI: endless loop when stopping cursor blinking

Problem:    Endless loop when gui_mch_stop_blink() is called while blink_state
            is BLINK_OFF. (zdohnal)
Solution:   Avoid calling gui_update_cursor() recursively.
This commit is contained in:
Bram Moolenaar
2018-01-31 21:10:01 +01:00
parent a338adcf22
commit 1dd45fb4f3
12 changed files with 29 additions and 26 deletions

View File

@@ -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)