summaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-24 16:03:06 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-24 16:03:06 +0200
commit1e8e14552e0cc8881411eb8fbe39a654dae42554 (patch)
treef28d457d94b1ac4db1fe700f23bb31d428e674d5 /src/globals.h
parent24a9e348aa88a6c60ae0cdf5c4a777d8c03b08ca (diff)
downloadvim-1e8e14552e0cc8881411eb8fbe39a654dae42554.zip
patch 8.0.0670: can't use input() in a timer callback
Problem: Can't use input() in a timer callback. (Cosmin Popescu) Solution: Reset vgetc_busy and set timer_busy. (Ozaki Kiichi, closes #1790, closes #1129)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 56df6d508..7cf928c16 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1659,6 +1659,7 @@ EXTERN int in_free_unref_items INIT(= FALSE);
#ifdef FEAT_TIMERS
EXTERN int did_add_timer INIT(= FALSE);
+EXTERN int timer_busy INIT(= 0); /* when timer is inside vgetc() then > 0 */
#endif
#ifdef FEAT_EVAL