mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0975: Vim9: interpolated string expr not working in object methods
Problem: Vim9: interpolated string expr not working in object methods (Igbanam Ogbuluijah) Solution: Check the evalarg argument (Yegappan Lakshmanan) fixes: #16317 closes: #16342 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
df4b3ca5dc
commit
b0206e9fb5
@@ -819,6 +819,8 @@ deref_function_name(
|
||||
typval_T ref;
|
||||
char_u *name = *arg;
|
||||
int save_flags = 0;
|
||||
int evaluate = evalarg != NULL
|
||||
&& (evalarg->eval_flags & EVAL_EVALUATE);
|
||||
|
||||
ref.v_type = VAR_UNKNOWN;
|
||||
if (evalarg != NULL)
|
||||
@@ -867,7 +869,7 @@ deref_function_name(
|
||||
*tofree = name;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (evaluate)
|
||||
{
|
||||
if (verbose)
|
||||
semsg(_(e_not_callable_type_str), name);
|
||||
|
Reference in New Issue
Block a user