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.
0366c0161e
This commit is contained in:
Jan Edmund Lazo
2019-06-17 23:22:26 -04:00
parent 8bea8d7b47
commit a6707f5791
2 changed files with 16 additions and 2 deletions

View File

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