comparison src/testdir/test_eval_stuff.vim @ 16982:301f6deea057 v8.1.1491

patch 8.1.1491: when skipping over code a function call may cause trouble commit https://github.com/vim/vim/commit/606407384144df73a6154aca1d77e071fe1b7651 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 7 23:15:22 2019 +0200 patch 8.1.1491: when skipping over code a function call may cause trouble Problem: When skipping over code after an exception was thrown expression evaluation is aborted after a function call. (Ingo Karkat) Solution: Do not fail if not executing the expression. (closes #4507)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jun 2019 23:30:06 +0200
parents 235a2b941498
children d5fa04016df0
comparison
equal deleted inserted replaced
16981:873f8aedfb6c 16982:301f6deea057
176 func Test_scriptversion() 176 func Test_scriptversion()
177 call writefile(['scriptversion 9'], 'Xversionscript') 177 call writefile(['scriptversion 9'], 'Xversionscript')
178 call assert_fails('source Xversionscript', 'E999:') 178 call assert_fails('source Xversionscript', 'E999:')
179 call delete('Xversionscript') 179 call delete('Xversionscript')
180 endfunc 180 endfunc
181
182 " Test fix for issue #4507
183 func Test_skip_after_throw()
184 try
185 throw 'something'
186 let x = wincol() || &ts
187 catch /something/
188 endtry
189 endfunc