diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-31 12:43:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-31 12:43:23 +0200 |
commit | 28d8421bfb3327d7a5e81369977e8fc108b0229e (patch) | |
tree | 520f67d2496e3b19eda8593e614d3e8c38cd13e0 /src/testdir/test_quickfix.vim | |
parent | 890ee4e2be1dca0c07a91f836e26baead952ae7c (diff) |
patch 8.2.3254: win_gettype() does not recognize a quickfix windowv8.2.3254
Problem: win_gettype() does not recognize a quickfix window.
Solution: Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676)
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index e5a6d6cdbc..e22f6b28d9 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -5587,4 +5587,21 @@ func Test_locationlist_open_in_newtab() %bwipe! endfunc +" Test for win_gettype() in quickfix and location list windows +func Test_win_gettype() + copen + call assert_equal("quickfix", win_gettype()) + let wid = win_getid() + wincmd p + call assert_equal("quickfix", win_gettype(wid)) + cclose + lexpr '' + lopen + call assert_equal("loclist", win_gettype()) + let wid = win_getid() + wincmd p + call assert_equal("loclist", win_gettype(wid)) + lclose +endfunc + " vim: shiftwidth=2 sts=2 expandtab |