]> granicus.if.org Git - vim/commitdiff
patch 8.0.0931: getwininfo() does not indicate a terminal window v8.0.0931
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Aug 2017 16:14:47 +0000 (18:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Aug 2017 16:14:47 +0000 (18:14 +0200)
Problem:    getwininfo() does not indicate a terminal window.
Solution:   Add "terminal" to the dictionary.

runtime/doc/eval.txt
src/evalfunc.c
src/version.c

index 35e5670939032ef48ba5cdab23ccdf5d85537ceb..37e849c90a9c1b3b3528fcdf3c7da28d08c7c578 100644 (file)
@@ -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
index 1721e039c54aba062188ae8f0c88406e98a224ca..3d657f73e638b82449ab037efc113f2a01c7cc07 100644 (file)
@@ -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",
index 91f9b56703b0ea95f0276c98dd70a50afacbbbee..99a01b1d24530d05514301f6966361b9aab46add 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    931,
 /**/
     930,
 /**/