File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -3130,7 +3130,7 @@ eval6(
31303130 */
31313131 if (evaluate && in_vim9script () && !IS_WHITE_OR_NUL ((* arg )[1 ]))
31323132 {
3133- error_white_both (p , 1 );
3133+ error_white_both (* arg , 1 );
31343134 clear_tv (rettv );
31353135 return FAIL ;
31363136 }
Original file line number Diff line number Diff line change @@ -1254,6 +1254,17 @@ def Test_expr5_vim9script()
12541254 echo ' a' .. function (' len' )
12551255 END
12561256 CheckScriptFailure (lines , ' E729:' , 2 )
1257+
1258+ lines = << trim END
1259+ vim9script
1260+ new
1261+ [' ' ]- >setline (1 )
1262+ /pattern
1263+
1264+ eval 0
1265+ bwipe!
1266+ END
1267+ CheckScriptFailure (lines , " E1004: White space required before and after '/' at \" /pattern" )
12571268enddef
12581269
12591270def Test_expr5_vim9script_channel ()
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 2573 ,
753755/**/
754756 2572 ,
755757/**/
You can’t perform that action at this time.
0 commit comments