mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
vim-patch:8.2.3254: win_gettype() does not recognize a quickfix window
Problem: win_gettype() does not recognize a quickfix window.
Solution: Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes vim/vim#8676)
28d8421bfb
This commit is contained in:
@@ -5291,4 +5291,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
|
||||
|
||||
Reference in New Issue
Block a user