aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-09 11:06:02 +0800
committerGitHub <noreply@github.com>2024-04-09 11:06:02 +0800
commitc695caa7eeb16fdf5c5bf0c00644daf085f8a13a (patch)
tree581a7f143503394466947a1ebcaa2a8f42f31448 /src
parent869d30304319a2839306ea56c37256a120a7efef (diff)
downloadrneovim-c695caa7eeb16fdf5c5bf0c00644daf085f8a13a.tar.gz
rneovim-c695caa7eeb16fdf5c5bf0c00644daf085f8a13a.tar.bz2
rneovim-c695caa7eeb16fdf5c5bf0c00644daf085f8a13a.zip
vim-patch:8.2.4395: some code lines not covered by tests (#28248)
Problem: Some code lines not covered by tests. Solution: Add a few more test cases. Fix getting more than one error for invalid assignment. https://github.com/vim/vim/commit/8b716f5f2204f938769de283d43bcb2f77d403e7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval/vars.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/eval/vars.c b/src/nvim/eval/vars.c
index 7217f84420..4ecf7a6d63 100644
--- a/src/nvim/eval/vars.c
+++ b/src/nvim/eval/vars.c
@@ -57,6 +57,8 @@ typedef int (*ex_unletlock_callback)(lval_T *, char *, exarg_T *, int);
#define DICT_MAXNEST 100 // maximum nesting of lists and dicts
static const char *e_letunexp = N_("E18: Unexpected characters in :let");
+static const char e_double_semicolon_in_list_of_variables[]
+ = N_("E452: Double ; in list of variables");
static const char *e_lock_unlock = N_("E940: Cannot lock or unlock variable %s");
static const char e_setting_v_str_to_value_with_wrong_type[]
= N_("E963: Setting v:%s to value with wrong type");
@@ -541,7 +543,9 @@ const char *skip_var_list(const char *arg, int *var_count, int *semicolon, bool
break;
} else if (*p == ';') {
if (*semicolon == 1) {
- emsg(_("E452: Double ; in list of variables"));
+ if (!silent) {
+ emsg(_(e_double_semicolon_in_list_of_variables));
+ }
return NULL;
}
*semicolon = 1;