diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-03 22:31:04 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-09 21:38:33 -0400 |
| commit | c2e7f39528a5270fbc44469296158e98ba5838f9 (patch) | |
| tree | d81940293e08d994dd1043e730879a85ca12273b /src/nvim/testdir/test_eval_stuff.vim | |
| parent | f4b2b66661893c1ca80b1b662b826bc2307fcc36 (diff) | |
| download | rneovim-c2e7f39528a5270fbc44469296158e98ba5838f9.tar.gz rneovim-c2e7f39528a5270fbc44469296158e98ba5838f9.tar.bz2 rneovim-c2e7f39528a5270fbc44469296158e98ba5838f9.zip | |
vim-patch:8.0.1423: error in return not caught by try/catch
Problem: Error in return not caught by try/catch.
Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483)
https://github.com/vim/vim/commit/fabaf753e26df5a89a854673d14c15a1fa6b321a
Diffstat (limited to 'src/nvim/testdir/test_eval_stuff.vim')
| -rw-r--r-- | src/nvim/testdir/test_eval_stuff.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_eval_stuff.vim b/src/nvim/testdir/test_eval_stuff.vim new file mode 100644 index 0000000000..92e1ec5335 --- /dev/null +++ b/src/nvim/testdir/test_eval_stuff.vim @@ -0,0 +1,13 @@ +" Tests for various eval things. + +function s:foo() abort + try + return [] == 0 + catch + return 1 + endtry +endfunction + +func Test_catch_return_with_error() + call assert_equal(1, s:foo()) +endfunc |