mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0820: Vim9: function type isn't set until compiled
Problem: Vim9: function type isn't set until compiled. Solution: Set function type early.
This commit is contained in:
@@ -3284,6 +3284,9 @@ def_function(exarg_T *eap, char_u *name_arg)
|
||||
is_export = FALSE;
|
||||
}
|
||||
|
||||
if (eap->cmdidx == CMD_def)
|
||||
set_function_type(fp);
|
||||
|
||||
goto ret_free;
|
||||
|
||||
erret:
|
||||
|
Reference in New Issue
Block a user