0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.3959: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 18:49:43 +00:00
parent ef089f50f9
commit 6d0570117a
13 changed files with 122 additions and 45 deletions

View File

@@ -2516,15 +2516,15 @@ rewind_conditionals(
}
/*
* ":endfunction" when not after a ":function"
* ":endfunction" or ":enddef" when not after a ":function"
*/
void
ex_endfunction(exarg_T *eap)
{
if (eap->cmdidx == CMD_enddef)
emsg(_("E193: :enddef not inside a function"));
semsg(_(e_str_not_inside_function), ":enddef");
else
emsg(_("E193: :endfunction not inside a function"));
semsg(_(e_str_not_inside_function), ":endfunction");
}
/*