mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4202: Vim9: cannot export function that exists globally
Problem: Vim9: cannot export function that exists globally. Solution: When checking if a function already exists only check for script-local functions. (closes #9615)
This commit is contained in:
@@ -2050,7 +2050,7 @@ delete_instr(isn_T *isn)
|
||||
case ISN_NEWFUNC:
|
||||
{
|
||||
char_u *lambda = isn->isn_arg.newfunc.nf_lambda;
|
||||
ufunc_T *ufunc = find_func_even_dead(lambda, TRUE);
|
||||
ufunc_T *ufunc = find_func_even_dead(lambda, FFED_IS_GLOBAL);
|
||||
|
||||
if (ufunc != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user