aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2017-03-11 13:56:23 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-11 13:56:23 +0100
commiteb8cbfc8f514c5c84741f782314dc9c256b6d977 (patch)
tree8fd1253df4cfabc8f9f6513a2d1b9571b106394b /src/nvim/testdir
parentd1afd434f30202410b217e7137c4a2a4fe055dbe (diff)
downloadrneovim-eb8cbfc8f514c5c84741f782314dc9c256b6d977.tar.gz
rneovim-eb8cbfc8f514c5c84741f782314dc9c256b6d977.tar.bz2
rneovim-eb8cbfc8f514c5c84741f782314dc9c256b6d977.zip
vim-patch:8.0.0068 (#6243)
Problem: Checking did_throw after executing autocommands is wrong. (Daniel Hahler) Solution: Call aborting() instead, and only when autocommands were executed. https://github.com/vim/vim/commit/21662be2211675824df1771c7f169948ede40c41
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_quickfix.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 50fe6ce977..044c288ce0 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -1560,3 +1560,20 @@ function Test_Autocmd()
\ 'postcaddbuffer']
call assert_equal(l, g:acmds)
endfunction
+
+function! Test_Autocmd_Exception()
+ set efm=%m
+ lgetexpr '?'
+
+ try
+ call DoesNotExit()
+ catch
+ lgetexpr '1'
+ finally
+ lgetexpr '1'
+ endtry
+
+ call assert_equal('1', getloclist(0)[0].text)
+
+ set efm&vim
+endfunction