mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
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:
@@ -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
|
||||||
|
@@ -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));
|
||||||
|
Reference in New Issue
Block a user