diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-17 23:22:26 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-19 01:36:00 -0400 |
| commit | a6707f5791ddfa3872fa22bc2c384847976d2fee (patch) | |
| tree | c32a6654e8f3d30aaafeb9d78b4c16517e196a33 /src/nvim/testdir/test_quickfix.vim | |
| parent | 8bea8d7b4767d896e5c557ea9603e3d55e8e47af (diff) | |
| download | rneovim-a6707f5791ddfa3872fa22bc2c384847976d2fee.tar.gz rneovim-a6707f5791ddfa3872fa22bc2c384847976d2fee.tar.bz2 rneovim-a6707f5791ddfa3872fa22bc2c384847976d2fee.zip | |
vim-patch:8.1.0073: crash when autocommands call setloclist()
Problem: Crash when autocommands call setloclist(). (Dominique Pelle)
Solution: If the quickfix list changes then don't jump to the error.
https://github.com/vim/vim/commit/0366c0161e988e32420d2f37111a60129684905b
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index fcb02d3437..4d78c67f5c 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3373,6 +3373,17 @@ func Test_lbuffer_with_bwipe() augroup END endfunc +func Test_setloclist_in_aucmd() + " This was using freed memory. + augroup nasty + au * * call setloclist(0, [], 'f') + augroup END + lexpr "x" + augroup nasty + au! + augroup END +endfunc + " Tests for the "CTRL-W <CR>" command. func Xview_result_split_tests(cchar) call s:setup_commands(a:cchar) |