forked from aniani/vim
patch 9.1.0400: Vim9: confusing error message for unknown type
Problem: Vim9: confusing error message for unknown type (Doug Kearns) Solution: For an unknown type, display only the type name in the error message (Yegappan Lakshmanan) fixes: #13153 closes: #14736 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
d5c8c0920e
commit
1b53172901
@@ -1466,7 +1466,14 @@ parse_type_user_defined(
|
||||
}
|
||||
|
||||
if (give_error && (did_emsg == did_emsg_before))
|
||||
{
|
||||
char_u *p = skip_type(*arg, FALSE);
|
||||
char cc = *p;
|
||||
|
||||
*p = NUL;
|
||||
semsg(_(e_type_not_recognized_str), *arg);
|
||||
*p = cc;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user