diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-11-15 13:41:01 -0500 | 
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-28 14:57:38 -0500 | 
| commit | 4453aa0d29d7a4e488a4c1799c9d33bcbde432eb (patch) | |
| tree | 51433dcc609844f2afef9277483afcae548fd781 /src/nvim/eval.c | |
| parent | 6205846cd969bf6bafc933cb295c4cef819b9e84 (diff) | |
| download | rneovim-4453aa0d29d7a4e488a4c1799c9d33bcbde432eb.tar.gz rneovim-4453aa0d29d7a4e488a4c1799c9d33bcbde432eb.tar.bz2 rneovim-4453aa0d29d7a4e488a4c1799c9d33bcbde432eb.zip | |
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)
https://github.com/vim/vim/commit/386600f0cbcb8add099c723cf84634f46df2f788
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 91f7233a21..a59bfca2a5 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10905,6 +10905,11 @@ static dict_T *get_win_info(win_T *wp, short tpnr, short winnr)    dict_add_nr_str(dict, "width", wp->w_width, NULL);    dict_add_nr_str(dict, "bufnum", wp->w_buffer->b_fnum, NULL); +  dict_add_nr_str(dict, "quickfix", bt_quickfix(wp->w_buffer), NULL); +  dict_add_nr_str(dict, "loclist", +                  (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL), +                  NULL); +    // Copy window variables    dict_T *vars = dict_copy(NULL, wp->w_vars, true, 0);    if (vars != NULL) { | 
