diff src/evalfunc.c @ 12102:560a2b6789c3 v8.0.0931

patch 8.0.0931: getwininfo() does not indicate a terminal window commit https://github.com/vim/vim/commit/69905d108be4af86c2d2a9224e2c588723276dc9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 13 18:14:47 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2017 18:15:04 +0200
parents 0498547dace0
children 6afc7339c2ad
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -5228,6 +5228,9 @@ get_win_info(win_T *wp, short tpnr, shor
     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",