forked from aniani/vim
patch 9.0.2184: Vim9: inconsistent :type/:class messages
Problem: Vim9: inconsistent :type/:class messages Solution: Update the Messages (Ernie Rael) closes: #13706 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
18ab6c3392
commit
e75fde6b04
@@ -1871,7 +1871,10 @@ check_typval_is_value(typval_T *tv)
|
||||
return OK;
|
||||
if (tv->v_type == VAR_CLASS)
|
||||
{
|
||||
semsg(_(e_using_class_as_value_str), tv->vval.v_class->class_name);
|
||||
if (tv->vval.v_class != NULL)
|
||||
semsg(_(e_using_class_as_value_str), tv->vval.v_class->class_name);
|
||||
else
|
||||
emsg(e_using_class_as_var_val);
|
||||
return FAIL;
|
||||
}
|
||||
else if (tv->v_type == VAR_TYPEALIAS)
|
||||
|
Reference in New Issue
Block a user