diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-02 07:57:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-02 07:57:18 +0100 |
commit | d82a81cad93708a6c180e59119db4818cc38c1a9 (patch) | |
tree | 8b106fec1bfc3f70744b5fcf872275eb82110219 /src/testdir/test_quickfix.vim | |
parent | 6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07 (diff) | |
download | vim-git-d82a81cad93708a6c180e59119db4818cc38c1a9.tar.gz |
patch 8.1.0988: deleting location list buffer breaks location list windowv8.1.0988
Problem: Deleting a location list buffer breaks location list window
functionality.
Solution: (Yegappan Lakshmanan, closes #4056)
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index d31bd5233..4213975d8 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -3933,6 +3933,16 @@ func Xqfbuf_test(cchar) call assert_match(qfbnum . ' h- "\[Location List]"', execute('ls')) call assert_true(bufloaded(qfbnum)) + " After deleting a location list buffer using ":bdelete", opening the + " location list window should mark the buffer as a location list buffer. + exe "bdelete " . qfbnum + lopen + call assert_equal("quickfix", &buftype) + call assert_equal(1, getwininfo(win_getid(winnr()))[0].loclist) + call assert_equal(wid, getloclist(0, {'filewinid' : 0}).filewinid) + call assert_false(&swapfile) + lclose + " When the location list is cleared for the window, the buffer should be " removed call setloclist(0, [], 'f') |