summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-13 18:14:47 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-13 18:14:47 +0200
commit69905d108be4af86c2d2a9224e2c588723276dc9 (patch)
treeaa5cf80ed5eb1b6d11f9c194a11897f1d6da7419
parente62780543f403186b27b210dd087dd8ba74159fc (diff)
patch 8.0.0931: getwininfo() does not indicate a terminal windowv8.0.0931
Problem: getwininfo() does not indicate a terminal window. Solution: Add "terminal" to the dictionary.
-rw-r--r--runtime/doc/eval.txt2
-rw-r--r--src/evalfunc.c3
-rw-r--r--src/version.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 35e5670939..37e849c90a 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -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
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 1721e039c5..3d657f73e6 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",
diff --git a/src/version.c b/src/version.c
index 91f9b56703..99a01b1d24 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 931,
+/**/
930,
/**/
929,