mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user