diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-07 23:15:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-07 23:15:22 +0200 |
commit | 606407384144df73a6154aca1d77e071fe1b7651 (patch) | |
tree | 326e43b2a4055b7b6e782a9c264c25b9f8214c98 /src/testdir/test_eval_stuff.vim | |
parent | 4e0bf846279f3efa6299a98143033db1fdfa143a (diff) | |
download | vim-git-606407384144df73a6154aca1d77e071fe1b7651.tar.gz |
patch 8.1.1491: when skipping over code a function call may cause troublev8.1.1491
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)
Diffstat (limited to 'src/testdir/test_eval_stuff.vim')
-rw-r--r-- | src/testdir/test_eval_stuff.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index c77972339..db68e2a40 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -178,3 +178,12 @@ func Test_scriptversion() call assert_fails('source Xversionscript', 'E999:') call delete('Xversionscript') endfunc + +" Test fix for issue #4507 +func Test_skip_after_throw() + try + throw 'something' + let x = wincol() || &ts + catch /something/ + endtry +endfunc |