mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	patch 8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level
Problem: Vim9: exception in ISN_INSTR caught at wrong level. Solution: Set the starting trylevel in exec_instructions(). (closes #8214)
This commit is contained in:
		| @@ -1006,6 +1006,20 @@ def Test_searchpair() | ||||
|   normal 0f{ | ||||
|   assert_equal([0, 0], searchpairpos('{', '', '}', '', 'col(".") > col')) | ||||
|  | ||||
|   var lines =<< trim END | ||||
|       vim9script | ||||
|       setline(1, '()') | ||||
|       normal gg | ||||
|       def Fail() | ||||
|         try | ||||
|           searchpairpos('(', '', ')', 'nW', '[0]->map("")') | ||||
|         catch | ||||
|         endtry | ||||
|       enddef | ||||
|       Fail() | ||||
|   END | ||||
|   CheckScriptFailure(lines, 'E15:') | ||||
|  | ||||
|   bwipe! | ||||
| enddef | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user