diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-02 15:58:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-02 15:58:38 +0000 |
commit | c96b7f5d2af241c5eb1589e9da3dc09e45355e65 (patch) | |
tree | ef26f1475c713f971de88df0f7eec925c5822aca /src/time.c | |
parent | 9c8d12c8115640927823919001a03c79d4118063 (diff) |
patch 9.0.0990: callback name argument is changed by setqflist()v9.0.0990
Problem: Callback name argument is changed by setqflist().
Solution: Use the expanded function name for the callback, do not store it
in the argument. (closes #11653)
Diffstat (limited to 'src/time.c')
-rw-r--r-- | src/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/time.c b/src/time.c index 891a9f49ed..efdad690a4 100644 --- a/src/time.c +++ b/src/time.c @@ -908,6 +908,8 @@ f_timer_start(typval_T *argvars, typval_T *rettv) else { set_callback(&timer->tr_callback, &callback); + if (callback.cb_free_name) + vim_free(callback.cb_name); rettv->vval.v_number = (varnumber_T)timer->tr_id; } } |