+5
-6
lines changedFilter options
+5
-6
lines changed Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ static char *e_nowhitespace
69
69
static char *e_invalwindow = N_("E957: Invalid window number");
70
70
static char *e_lock_unlock = N_("E940: Cannot lock or unlock variable %s");
71
71
static char *e_write2 = N_("E80: Error while writing: %s");
72
+
static char *e_string_list_or_blob_required = N_("E1098: String, List or Blob required");
72
73
73
74
// TODO(ZyX-I): move to eval/executor
74
75
static char *e_letwrong = N_("E734: Wrong variable type for %s=");
@@ -2651,7 +2652,7 @@ void *eval_for_line(const char_u *arg, bool *errp, char_u **nextcmdp, int skip)
2651
2652
fi->fi_string = vim_strsave((char_u *)"");
2652
2653
}
2653
2654
} else {
2654
-
emsg(_(e_listblobreq));
2655
+
emsg(_(e_string_list_or_blob_required));
2655
2656
tv_clear(&tv);
2656
2657
}
2657
2658
}
Original file line number Diff line number Diff line change
@@ -65,11 +65,9 @@ func Test_E963()
65
65
endfunc
66
66
67
67
func Test_for_invalid()
68
-
" Vim gives incorrect emsg here until v8.2.3284, but the exact emsg from that
69
-
" patch cannot be used until v8.2.2658 is ported (for loop over Strings)
70
-
call assert_fails("for x in 99", 'E897:')
71
-
call assert_fails("for x in function('winnr')", 'E897:')
72
-
call assert_fails("for x in {'a': 9}", 'E897:')
68
+
call assert_fails("for x in 99", 'E1098:')
69
+
call assert_fails("for x in function('winnr')", 'E1098:')
70
+
call assert_fails("for x in {'a': 9}", 'E1098:')
73
71
74
72
if 0
75
73
/1/5/2/s/\n
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4