diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-18 15:33:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-18 15:33:00 +0100 |
commit | 4fb921e388b9a042573ab06cce36e92874954197 (patch) | |
tree | b0384b68f18be50331f34311a39c0205679c62ec /src/testdir/test_autocmd.vim | |
parent | 9bca805ec49eb0d2d0d0b2093f418ff425500169 (diff) |
patch 8.0.1403: using freed buffer in grep commandv8.0.1403
Problem: Using freed buffer in grep command. (gy741, Dominique Pelle)
Solution: Lock the dummy buffer to avoid autocommands wiping it out.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 8ac8811075..d8fddffebb 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -1171,3 +1171,10 @@ func Test_nocatch_wipe_all_buffers() bwipe au! endfunc + +func Test_nocatch_wipe_dummy_buffer() + " Nasty autocommand: wipe buffer on any event. + au * x bwipe + call assert_fails('lvĀ½ /x', 'E480') + au! +endfunc |