aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 00:27:03 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 01:27:30 -0400
commitee37a0c79ae61931b15570ed1877779dc7bd0dad (patch)
tree0b04e24785bb328053310c77428d9adc7b3f5679 /src/nvim/testdir
parent0bdd4e8393636ad7c7d013df4c361264b1c048f1 (diff)
downloadrneovim-ee37a0c79ae61931b15570ed1877779dc7bd0dad.tar.gz
rneovim-ee37a0c79ae61931b15570ed1877779dc7bd0dad.tar.bz2
rneovim-ee37a0c79ae61931b15570ed1877779dc7bd0dad.zip
vim-patch:8.0.1413: accessing freed memory in :cbuffer
Problem: Accessing freed memory in :cbuffer. Solution: Get quickfix list after executing autocmds. (closes vim/vim#2470) https://github.com/vim/vim/commit/aaf6e43b7a99cedb89d73ba749a46f7a0f16bbb6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_autocmd.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index e0f55b79c1..7173558d50 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -1182,6 +1182,13 @@ func Test_nocatch_wipe_dummy_buffer()
au!
endfunc
+func Test_wipe_cbuffer()
+ sv x
+ au * * bw
+ lb
+ au!
+endfunc
+
" Test TextChangedI and TextChangedP
func Test_ChangedP()
" Nvim does not support test_override().