1
0
forked from aniani/vim

patch 7.4.2215

Problem:    It's not easy to find out if a window is a quickfix or location
            list window.
Solution:   Add "loclist" and "quickfix" entries to the dict returnec by
            getwininfo(). (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2016-08-15 22:16:25 +02:00
parent 16350cb979
commit 386600f0cb
4 changed files with 73 additions and 17 deletions

View File

@@ -4584,14 +4584,16 @@ getwininfo([{winid}]) *getwininfo()*
pages is returned.
Each List item is a Dictionary with the following entries:
nr window number.
tpnr tab page number.
winid window ID.
height window height.
width window width.
bufnum number of buffer in the window.
options dictionary of window local options.
variables dictionary of window local variables.
bufnum number of buffer in the window
height window height
loclist 1 if showing a location list
nr window number
options dictionary of window local options
quickfix 1 if quickfix or location list window
tpnr tab page number
variables dictionary of window local variables
width window width
winid window ID
getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
Like |gettabwinvar()| for the current tabpage.