summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 18:49:43 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 18:49:43 +0000
commit6d0570117ac86b7979bf249de5741088212d6e17 (patch)
tree225e3162570358ed40ac31407ec965d2a560d8bf /src/ex_eval.c
parentef089f50f9d6685c7a0ab94f9133576d7beec32b (diff)
patch 8.2.3959: error messages are spread outv8.2.3959
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 337f1ed147..cb3fbc635b 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -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");
}
/*