commit | 4c17ad94ecb0a0fb26d6fface2614bc5172dea18 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 27 22:47:51 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 27 22:47:51 2020 +0200 |
tree | 3b26b172e38be6c1d762c58d7517ac79e21e0a0f | |
parent | db93495d276642f63f80471fbcb900b9aa1e9e42 [diff] [blame] |
patch 8.2.0650: Vim9: script function can be deleted Problem: Vim9: script function can be deleted. Solution: Disallow deleting script function. Delete functions when sourcing a script again.
diff --git a/src/testing.c b/src/testing.c index 35c2683..604d39b 100644 --- a/src/testing.c +++ b/src/testing.c
@@ -789,7 +789,7 @@ { 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; }