diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-02 14:30:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-02 14:30:04 +0200 |
commit | 4231da403e3c879dd6ac261e51f4ca60813935e3 (patch) | |
tree | d0c43a8b05ae0a727db41ac821ffc36df6d37880 /src/ex_cmds2.c | |
parent | c4bc0e6542185b659d2a165b635f9561549071ea (diff) | |
download | vim-git-4231da403e3c879dd6ac261e51f4ca60813935e3.tar.gz |
patch 7.4.1873v7.4.1873
Problem: When a callback adds a timer the GUI doesn't use it until later.
(Ramel Eshed)
Solution: Return early if a callback adds a timer.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 5efe0ec15..e0a392dee 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1101,6 +1101,7 @@ insert_timer(timer_T *timer) if (first_timer != NULL) first_timer->tr_prev = timer; first_timer = timer; + did_add_timer = TRUE; } /* |