From bb4e0deaf924490f792433becbe0629fe0ce5b4e Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 6 Jun 2019 19:59:17 -0400 Subject: vim-patch:8.1.0060: crash when autocommands delete the current buffer Problem: Crash when autocommands delete the current buffer. (Dominique Pelle) Solution: Check that autocommands don't change the buffer. https://github.com/vim/vim/commit/600323b4ef51a58a8e800d8ca469383a3c911db7 --- src/nvim/testdir/test_quickfix.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 12cd07a772..16fb86ea08 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3360,3 +3360,15 @@ func Test_vimgrep_autocmd() call delete('Xtest2.txt') call setqflist([], 'f') endfunc + +func Test_lbuffer_with_bwipe() + new + new + augroup nasty + au * * bwipe + augroup END + lbuffer + augroup nasty + au! + augroup END +endfunc -- cgit