1
0
forked from aniani/vim

patch 8.2.0241: crash when setting 'buftype' to "quickfix"

Problem:    Crash when setting 'buftype' to "quickfix".
Solution:   Check that error list is not NULL. (closes #5613)
This commit is contained in:
Bram Moolenaar
2020-02-10 22:56:54 +01:00
parent 408030e8d0
commit 99234f29aa
3 changed files with 10 additions and 1 deletions

View File

@@ -1628,6 +1628,13 @@ func Test_setqflist_invalid_nr()
eval []->setqflist(' ', {'nr' : $XXX_DOES_NOT_EXIST})
endfunc
func Test_setqflist_user_sets_buftype()
call setqflist([{'text': 'foo'}, {'text': 'bar'}])
set buftype=quickfix
call setqflist([], 'a')
enew
endfunc
func Test_quickfix_set_list_with_act()
call XquickfixSetListWithAct('c')
call XquickfixSetListWithAct('l')