diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/menu.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) |
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menu.c b/src/menu.c index c0a1f3a71e..e821b0580d 100644 --- a/src/menu.c +++ b/src/menu.c @@ -273,7 +273,7 @@ ex_menu( menu_path = arg; if (*menu_path == '.') { - semsg(_(e_invarg2), menu_path); + semsg(_(e_invalid_argument_str), menu_path); goto theend; } @@ -2508,7 +2508,7 @@ ex_emenu(exarg_T *eap) case 't': mode_idx = MENU_INDEX_TERMINAL; break; case 'i': mode_idx = MENU_INDEX_INSERT; break; case 'c': mode_idx = MENU_INDEX_CMDLINE; break; - default: semsg(_(e_invarg2), arg); + default: semsg(_(e_invalid_argument_str), arg); return; } arg = skipwhite(arg + 2); @@ -2698,7 +2698,7 @@ ex_menutranslate(exarg_T *eap UNUSED) if (arg == to || ends_excmd2(eap->arg, from) || ends_excmd2(eap->arg, to) || !ends_excmd2(eap->arg, skipwhite(arg))) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); else { if (ga_grow(&menutrans_ga, 1) == OK) |