diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-13 17:52:04 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-14 04:29:44 +0800 |
commit | 1ca2247639424994890ef70ab34f2bffa23ddd9f (patch) | |
tree | c3697b80da96e6e1165742979deb121ca491b1d0 /src/nvim/eval/userfunc.c | |
parent | a10a23aae91a8356b36ac63f0917a556cfcaf976 (diff) | |
download | rneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.tar.gz rneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.tar.bz2 rneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.zip |
vim-patch:8.2.0823: Vim9: script reload test is disabled
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
https://github.com/vim/vim/commit/25e0f5863e9010a75a1ff0d04e8f886403968755
Omit stack_top_is_ufunc(): only used by Vim9 script.
Diffstat (limited to 'src/nvim/eval/userfunc.c')
-rw-r--r-- | src/nvim/eval/userfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index 83be330592..c527c70be0 100644 --- a/src/nvim/eval/userfunc.c +++ b/src/nvim/eval/userfunc.c @@ -1015,7 +1015,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, typval_T *rett sandbox++; } - estack_push_ufunc(ETYPE_UFUNC, fp, 1); + estack_push_ufunc(fp, 1); if (p_verbose >= 12) { ++no_wait_return; verbose_enter_scroll(); |