diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-04 23:17:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 23:17:43 +0800 |
commit | b16729f8162ce21a52f079c3849f5011b768d0ce (patch) | |
tree | 2f6c29f6c9af0cb9eff19c9a07102c5275e0f21e /src/nvim/eval/userfunc.c | |
parent | fe7cdc7cc0037bb41bd940bee7818a5235ffaa79 (diff) | |
download | rneovim-b16729f8162ce21a52f079c3849f5011b768d0ce.tar.gz rneovim-b16729f8162ce21a52f079c3849f5011b768d0ce.tar.bz2 rneovim-b16729f8162ce21a52f079c3849f5011b768d0ce.zip |
vim-patch:8.2.1697: inconsistent capitalization of error messages (#23476)
Problem: Inconsistent capitalization of error messages.
Solution: Always start with a capital.
https://github.com/vim/vim/commit/7707228aace9aff16434edf5377a354c6ad07316
Most of these errors are Vim9 script only.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval/userfunc.c')
-rw-r--r-- | src/nvim/eval/userfunc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index bfda2c4b9b..fbb5e8d10c 100644 --- a/src/nvim/eval/userfunc.c +++ b/src/nvim/eval/userfunc.c @@ -79,6 +79,8 @@ static const char *e_funcref = N_("E718: Funcref required"); static const char *e_nofunc = N_("E130: Unknown function: %s"); static const char e_function_list_was_modified[] = N_("E454: Function list was modified"); +static const char e_function_nesting_too_deep[] + = N_("E1058: Function nesting too deep"); static const char e_no_white_space_allowed_before_str_str[] = N_("E1068: No white space allowed before '%s': %s"); static const char e_missing_heredoc_end_marker_str[] @@ -2528,7 +2530,7 @@ void ex_function(exarg_T *eap) xfree(trans_function_name(&p, true, 0, NULL, NULL)); if (*skipwhite(p) == '(') { if (nesting == MAX_FUNC_NESTING - 1) { - emsg(_("E1058: function nesting too deep")); + emsg(_(e_function_nesting_too_deep)); } else { nesting++; indent += 2; |