mirror of
https://github.com/vim/vim.git
synced 2025-10-22 08:34:29 -04:00
patch 9.1.1531: confusing error with nested legacy function
Problem: confusing error with nested legacy function (lacygoill) Solution: clarify error message E1117 with :def or :func (Hirohito Higashi) fixes: #17697 closes: #17702 Signed-off-by: Hirohito Higashi <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1adada0158
commit
8331310c06
@@ -1035,7 +1035,8 @@ compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free)
|
||||
|
||||
if (eap->forceit)
|
||||
{
|
||||
emsg(_(e_cannot_use_bang_with_nested_def));
|
||||
semsg(_(e_cannot_use_bang_with_nested_def_str),
|
||||
eap->cmdidx == CMD_def ? ":def" : ":function");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user