diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-27 22:47:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-27 22:47:51 +0200 |
commit | 4c17ad94ecb0a0fb26d6fface2614bc5172dea18 (patch) | |
tree | 3b26b172e38be6c1d762c58d7517ac79e21e0a0f /src/testing.c | |
parent | db93495d276642f63f80471fbcb900b9aa1e9e42 (diff) | |
download | vim-git-4c17ad94ecb0a0fb26d6fface2614bc5172dea18.tar.gz |
patch 8.2.0650: Vim9: script function can be deletedv8.2.0650
Problem: Vim9: script function can be deleted.
Solution: Disallow deleting script function. Delete functions when sourcing
a script again.
Diffstat (limited to 'src/testing.c')
-rw-r--r-- | src/testing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing.c b/src/testing.c index 35c268349..604d39b74 100644 --- a/src/testing.c +++ b/src/testing.c @@ -789,7 +789,7 @@ f_test_refcount(typval_T *argvars, typval_T *rettv) { ufunc_T *fp; - fp = find_func(argvars[0].vval.v_string, NULL); + fp = find_func(argvars[0].vval.v_string, FALSE, NULL); if (fp != NULL) retval = fp->uf_refcount; } |