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 /src/nvim/eval.c | |
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
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |