forked from aniani/vim
patch 8.2.4529: Vim9: comparing partial with function fails
Problem: Vim9: comparing partial with function fails. Solution: Support this comparison. Avoid a crash. (closes #9909) Add more test cases.
This commit is contained in:
@@ -420,6 +420,8 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
|
||||
}
|
||||
else
|
||||
name = tv->vval.v_string;
|
||||
if (name == NULL && ufunc == NULL)
|
||||
return &t_func_unknown;
|
||||
if (name != NULL)
|
||||
{
|
||||
int idx = find_internal_func(name);
|
||||
|
Reference in New Issue
Block a user