File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1844,7 +1844,7 @@ do_one_cmd(
18441844
18451845 // If a ':' before the range is missing, give a clearer error
18461846 // message.
1847- if (ar > ea .cmd )
1847+ if (ar > ea .cmd && ! ea . skip )
18481848 {
18491849 semsg (_ (e_colon_required_before_range_str ), ea .cmd );
18501850 goto doend ;
Original file line number Diff line number Diff line change @@ -590,6 +590,19 @@ def Test_try_catch_throw()
590590 return 2
591591 enddef
592592 assert_equal (4 , ReturnInFinally ())
593+
594+ var lines = << trim END
595+ vim9script
596+ try
597+ acos (' 0.5' )
598+ - >setline (1 )
599+ catch
600+ g: caught = v: exception
601+ endtry
602+ END
603+ CheckScriptSuccess (lines )
604+ assert_match (' E808: Number or Float required' , g: caught )
605+ unlet g: caught
593606enddef
594607
595608" :while at the very start of a function that :continue jumps to
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+ 3004 ,
753755/**/
754756 3003 ,
755757/**/
You can’t perform that action at this time.
0 commit comments