File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -724,6 +724,27 @@ def Test_try_catch_fails()
724724 CheckDefFailure ([' throw xxx' ], ' E1001:' )
725725enddef
726726
727+ def Try_catch_skipped ()
728+ var l = []
729+ try
730+ finally
731+ endtry
732+
733+ if 1
734+ else
735+ try
736+ endtry
737+ endif
738+ enddef
739+
740+ " The skipped try/endtry was updating the wrong instruction.
741+ def Test_try_catch_skipped ()
742+ var instr = execute (' disassemble Try_catch_skipped' )
743+ assert_match (" NEWLIST size 0\n " , instr)
744+ enddef
745+
746+
747+
727748def Test_throw_vimscript ()
728749 # only checks line continuation
729750 var lines = << trim END
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+ 2517 ,
753755/**/
754756 2516 ,
755757/**/
You can’t perform that action at this time.
0 commit comments