diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-13 00:23:37 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-13 19:39:55 -0400 |
commit | e6a1bea1eb2f70f3a989295a2eaa18b3f49ddc02 (patch) | |
tree | 4c3b7b6bc94cc145bba9ac177f7275d58eea226a | |
parent | a0496e3b76e417ed718f72665d3c3f99a385367d (diff) | |
download | rneovim-e6a1bea1eb2f70f3a989295a2eaa18b3f49ddc02.tar.gz rneovim-e6a1bea1eb2f70f3a989295a2eaa18b3f49ddc02.tar.bz2 rneovim-e6a1bea1eb2f70f3a989295a2eaa18b3f49ddc02.zip |
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.
https://github.com/vim/vim/commit/69905d108be4af86c2d2a9224e2c588723276dc9
-rw-r--r-- | runtime/doc/eval.txt | 1 | ||||
-rw-r--r-- | src/nvim/eval.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 81e1ddee74..4eaa72ee68 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4707,6 +4707,7 @@ getwininfo([{winid}]) *getwininfo()* height window height (excluding winbar) loclist 1 if showing a location list quickfix 1 if quickfix or location list window + terminal 1 if a terminal window tabnr tab page number topline first displayed buffer line variables a reference to the dictionary with diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 54c469fabf..15fc994957 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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("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("loclist"), (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL)); |