[complement]

> then vim hangs up and we can't intercept by Ctrl-C.

Sorry, 'hang up' is incorrect. Vim accepts key input and redraws screen,
but we can't leave from normal mode.

> https://gist.github.com/ichizok/d6637a6d368bbf1353a35441c34039a7

This patch changes:

* add 'tr_firing' variable to timer_S, this indicates timer-callback firing 
state.

* last_timer_id is non-negative value. tr_id == -1 means deleted timer.

* in check_due_timer(), remove while loop in order to fix above problem.

* stop_timer() sets tr_id to -1 when tr_firing is TRUE, and timer is actually 
deleted after its callback has finished.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui