comparison src/testdir/test_vim9_builtin.vim @ 24637:4a4f64cdc798 v8.2.2857

patch 8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level Commit: https://github.com/vim/vim/commit/ff65288aa89dcd50760ad942d58baff70c6e93e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 16 15:24:49 2021 +0200 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 https://github.com/vim/vim/issues/8214)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 May 2021 15:30:03 +0200
parents cb031f421ece
children 982516c8d692
comparison
equal deleted inserted replaced
24636:840665e74421 24637:4a4f64cdc798
1004 assert_equal(0, searchpair('{', '', '}', '', 'col(".") > col')) 1004 assert_equal(0, searchpair('{', '', '}', '', 'col(".") > col'))
1005 assert_equal(6, col('.')) 1005 assert_equal(6, col('.'))
1006 normal 0f{ 1006 normal 0f{
1007 assert_equal([0, 0], searchpairpos('{', '', '}', '', 'col(".") > col')) 1007 assert_equal([0, 0], searchpairpos('{', '', '}', '', 'col(".") > col'))
1008 1008
1009 var lines =<< trim END
1010 vim9script
1011 setline(1, '()')
1012 normal gg
1013 def Fail()
1014 try
1015 searchpairpos('(', '', ')', 'nW', '[0]->map("")')
1016 catch
1017 endtry
1018 enddef
1019 Fail()
1020 END
1021 CheckScriptFailure(lines, 'E15:')
1022
1009 bwipe! 1023 bwipe!
1010 enddef 1024 enddef
1011 1025
1012 def Test_set_get_bufline() 1026 def Test_set_get_bufline()
1013 # similar to Test_setbufline_getbufline() 1027 # similar to Test_setbufline_getbufline()