Mercurial > vim
diff src/eval.c @ 26887:612339679616 v8.2.3972
patch 8.2.3972: error messages are spread out
Commit: https://github.com/vim/vim/commit/3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 16:21:00 2022 +0000
patch 8.2.3972: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 17:30:02 +0100 |
parents | 7f150a4936f2 |
children | d02d40f0261c |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -1632,7 +1632,7 @@ eval_for_line( if (in_vim9script() && *expr == ':' && expr != var_list_end) semsg(_(e_no_white_space_allowed_before_colon_str), expr); else - emsg(_(e_missing_in)); + emsg(_(e_missing_in_after_for)); return fi; } @@ -3888,7 +3888,7 @@ eval_lambda( if (verbose) { if (*skipwhite(*arg) == '(') - emsg(_(e_nowhitespace)); + emsg(_(e_no_white_space_allowed_before_parenthesis)); else semsg(_(e_missing_parenthesis_str), "lambda"); } @@ -3951,7 +3951,7 @@ eval_method( else if (VIM_ISWHITE((*arg)[-1])) { if (verbose) - emsg(_(e_nowhitespace)); + emsg(_(e_no_white_space_allowed_before_parenthesis)); ret = FAIL; } else @@ -5948,7 +5948,7 @@ handle_subscript( { if (VIM_ISWHITE(**arg)) { - emsg(_(e_nowhitespace)); + emsg(_(e_no_white_space_allowed_before_parenthesis)); ret = FAIL; } else if ((**arg == '{' && !in_vim9script()) || **arg == '(')