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.
600323b4ef
This commit is contained in:
Jan Edmund Lazo
2019-06-06 19:59:17 -04:00
parent 7d345a7294
commit bb4e0deaf9
2 changed files with 18 additions and 0 deletions

View File

@@ -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