Permalink
Browse files

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.
  • Loading branch information...
brammool committed Aug 13, 2017
1 parent e627805 commit 69905d108be4af86c2d2a9224e2c588723276dc9
Showing with 7 additions and 0 deletions.
  1. +2 −0 runtime/doc/eval.txt
  2. +3 −0 src/evalfunc.c
  3. +2 −0 src/version.c
View
@@ -4747,6 +4747,8 @@ getwininfo([{winid}]) *getwininfo()*
{only with the +quickfix feature}
quickfix 1 if quickfix or location list window
{only with the +quickfix feature}
terminal 1 if a terminal window
{only with the +terminal feature}
tabnr tab page number
variables a reference to the dictionary with
window-local variables
View
@@ -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",
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
931,
/**/
930,
/**/

0 comments on commit 69905d1

Please sign in to comment.