vim-patch:8.0.0931: getwininfo() does not indicate a terminal window

Problem:    getwininfo() does not indicate a terminal window.
Solution:   Add "terminal" to the dictionary.
69905d108b
This commit is contained in:
Jan Edmund Lazo
2019-06-13 00:23:37 -04:00
parent a0496e3b76
commit e6a1bea1eb
2 changed files with 2 additions and 0 deletions

View File

@@ -4707,6 +4707,7 @@ getwininfo([{winid}]) *getwininfo()*
height window height (excluding winbar) height window height (excluding winbar)
loclist 1 if showing a location list loclist 1 if showing a location list
quickfix 1 if quickfix or location list window quickfix 1 if quickfix or location list window
terminal 1 if a terminal window
tabnr tab page number tabnr tab page number
topline first displayed buffer line topline first displayed buffer line
variables a reference to the dictionary with variables a reference to the dictionary with

View File

@@ -10615,6 +10615,7 @@ static dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr)
tv_dict_add_nr(dict, S_LEN("bufnr"), wp->w_buffer->b_fnum); tv_dict_add_nr(dict, S_LEN("bufnr"), wp->w_buffer->b_fnum);
tv_dict_add_nr(dict, S_LEN("wincol"), wp->w_wincol); tv_dict_add_nr(dict, S_LEN("wincol"), wp->w_wincol);
tv_dict_add_nr(dict, S_LEN("terminal"), bt_terminal(wp->w_buffer));
tv_dict_add_nr(dict, S_LEN("quickfix"), bt_quickfix(wp->w_buffer)); tv_dict_add_nr(dict, S_LEN("quickfix"), bt_quickfix(wp->w_buffer));
tv_dict_add_nr(dict, S_LEN("loclist"), tv_dict_add_nr(dict, S_LEN("loclist"),
(bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL)); (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL));