mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user