Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 19366:102f9a44c8b3 v8.2.0241
patch 8.2.0241: crash when setting 'buftype' to "quickfix"
Commit: https://github.com/vim/vim/commit/99234f29aa8767f2e71bb1f5db6ee0131bc8e64e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 10 22:56:54 2020 +0100
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 https://github.com/vim/vim/issues/5613)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Feb 2020 23:00:04 +0100 |
parents | 6fd567c927c0 |
children | 02111977dd05 |
comparison
equal
deleted
inserted
replaced
19365:91e051377c65 | 19366:102f9a44c8b3 |
---|---|
1626 func Test_setqflist_invalid_nr() | 1626 func Test_setqflist_invalid_nr() |
1627 " The following command used to crash Vim | 1627 " The following command used to crash Vim |
1628 eval []->setqflist(' ', {'nr' : $XXX_DOES_NOT_EXIST}) | 1628 eval []->setqflist(' ', {'nr' : $XXX_DOES_NOT_EXIST}) |
1629 endfunc | 1629 endfunc |
1630 | 1630 |
1631 func Test_setqflist_user_sets_buftype() | |
1632 call setqflist([{'text': 'foo'}, {'text': 'bar'}]) | |
1633 set buftype=quickfix | |
1634 call setqflist([], 'a') | |
1635 enew | |
1636 endfunc | |
1637 | |
1631 func Test_quickfix_set_list_with_act() | 1638 func Test_quickfix_set_list_with_act() |
1632 call XquickfixSetListWithAct('c') | 1639 call XquickfixSetListWithAct('c') |
1633 call XquickfixSetListWithAct('l') | 1640 call XquickfixSetListWithAct('l') |
1634 endfunc | 1641 endfunc |
1635 | 1642 |