File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4205,6 +4205,18 @@ def Test_multiple_funcref()
4205
4205
v9.CheckScriptSuccess (lines )
4206
4206
enddef
4207
4207
4208
+ def Test_cexpr_errmsg_line_number ()
4209
+ var lines = << trim END
4210
+ vim9script
4211
+ def Func ()
4212
+ var qfl = {}
4213
+ cexpr qfl
4214
+ enddef
4215
+ Func ()
4216
+ END
4217
+ v9.CheckScriptFailure (lines , ' E777' , 2 )
4218
+ enddef
4219
+
4208
4220
" The following messes up syntax highlight, keep near the end.
4209
4221
if has (' python3' )
4210
4222
def Test_python3_command ()
Original file line number Diff line number Diff line change @@ -735,6 +735,8 @@ static char *(features[]) =
735
735
736
736
static int included_patches [] =
737
737
{ /* Add new patch number below this line */
738
+ /**/
739
+ 56 ,
738
740
/**/
739
741
55 ,
740
742
/**/
Original file line number Diff line number Diff line change @@ -2786,6 +2786,7 @@ exec_instructions(ectx_T *ectx)
2786
2786
ea .cmdlinep = & iptr -> isn_arg .cexpr .cexpr_ref -> cer_cmdline ;
2787
2787
-- ectx -> ec_stack .ga_len ;
2788
2788
tv = STACK_TV_BOT (0 );
2789
+ SOURCING_LNUM = iptr -> isn_lnum ;
2789
2790
res = cexpr_core (& ea , tv );
2790
2791
clear_tv (tv );
2791
2792
if (res == FAIL )
You can’t perform that action at this time.
0 commit comments