]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.3762: if quickfix buffer is wiped out getqflist() still returns it v8.2.3762
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 9 Dec 2021 09:27:06 +0000 (09:27 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Dec 2021 09:27:06 +0000 (09:27 +0000)
commit56150da6879a96db1c84c7ec4ceedeb84969f606
tree165896a3fa2c84c3517c8aad24a74ddd50c92f01
parenta48d4e44a24191f5495e17d7616771c20ae3e3c1
patch 8.2.3762: if quickfix buffer is wiped out getqflist() still returns it

Problem:    If the quickfix buffer is wiped out getqflist() still returns its
            number.
Solution:   Use zero if the buffer is no longer present. (Yegappan Lakshmanan,
            closes #9306)
src/quickfix.c
src/testdir/test_quickfix.vim
src/version.c