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.
8b716f5f22
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
869d303043
commit
c695caa7ee
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue