File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
Expand file tree Collapse file tree 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()
42054205 v9.CheckScriptSuccess (lines )
42064206enddef
42074207
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+
42084220" The following messes up syntax highlight, keep near the end.
42094221if has (' python3' )
42104222 def Test_python3_command ()
Original file line number Diff line number Diff line change @@ -735,6 +735,8 @@ static char *(features[]) =
735735
736736static int included_patches [] =
737737{ /* Add new patch number below this line */
738+ /**/
739+ 56 ,
738740/**/
739741 55 ,
740742/**/
Original file line number Diff line number Diff line change @@ -2786,6 +2786,7 @@ exec_instructions(ectx_T *ectx)
27862786 ea .cmdlinep = & iptr -> isn_arg .cexpr .cexpr_ref -> cer_cmdline ;
27872787 -- ectx -> ec_stack .ga_len ;
27882788 tv = STACK_TV_BOT (0 );
2789+ SOURCING_LNUM = iptr -> isn_lnum ;
27892790 res = cexpr_core (& ea , tv );
27902791 clear_tv (tv );
27912792 if (res == FAIL )
You can’t perform that action at this time.
0 commit comments