diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-18 12:37:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-18 12:37:55 +0100 |
commit | 9bca805ec49eb0d2d0d0b2093f418ff425500169 (patch) | |
tree | 107e825bc35cfd39d760427047196805804559fb /src/testdir/test_autocmd.vim | |
parent | cb89c98c264b0fe9fd26e3501eab5a062e57c064 (diff) |
patch 8.0.1402: crash with nasty autocommandv8.0.1402
Problem: Crash with nasty autocommand. (gy741, Dominique Pelle)
Solution: Check that the new current buffer isn't wiped out. (closes #2447)
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index bf106f33c7..8ac8811075 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -1163,3 +1163,11 @@ func Test_TextYankPost() unlet g:event bwipe! endfunc + +func Test_nocatch_wipe_all_buffers() + " Real nasty autocommand: wipe all buffers on any event. + au * * bwipe * + call assert_fails('next x', 'E93') + bwipe + au! +endfunc |