forked from aniani/vim
patch 9.0.1041: cannot define a method in a class
Problem: Cannot define a method in a class. Solution: Implement defining an object method. Make calling an object method work.
This commit is contained in:
@@ -1585,10 +1585,7 @@ f_typename(typval_T *argvars, typval_T *rettv)
|
||||
if (tofree != NULL)
|
||||
rettv->vval.v_string = (char_u *)tofree;
|
||||
else
|
||||
{
|
||||
rettv->vval.v_string = vim_strsave((char_u *)name);
|
||||
vim_free(tofree);
|
||||
}
|
||||
clear_type_list(&type_list);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user