diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-13 18:14:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-13 18:14:47 +0200 |
commit | 69905d108be4af86c2d2a9224e2c588723276dc9 (patch) | |
tree | aa5cf80ed5eb1b6d11f9c194a11897f1d6da7419 /src/evalfunc.c | |
parent | e62780543f403186b27b210dd087dd8ba74159fc (diff) | |
download | vim-69905d108be4af86c2d2a9224e2c588723276dc9.zip |
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.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 1721e039c..3d657f73e 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5228,6 +5228,9 @@ 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, "bufnr", wp->w_buffer->b_fnum, NULL); +#ifdef FEAT_TERMINAL + dict_add_nr_str(dict, "terminal", bt_terminal(wp->w_buffer), NULL); +#endif #ifdef FEAT_QUICKFIX dict_add_nr_str(dict, "quickfix", bt_quickfix(wp->w_buffer), NULL); dict_add_nr_str(dict, "loclist", |