commit | 4231da403e3c879dd6ac261e51f4ca60813935e3 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jun 02 14:30:04 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 02 14:30:04 2016 +0200 |
tree | d0c43a8b05ae0a727db41ac821ffc36df6d37880 | |
parent | c4bc0e6542185b659d2a165b635f9561549071ea [diff] [blame] |
patch 7.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.
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 5efe0ec..e0a392d 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c
@@ -1101,6 +1101,7 @@ if (first_timer != NULL) first_timer->tr_prev = timer; first_timer = timer; + did_add_timer = TRUE; } /*