-*builtin.txt* For Vim version 9.1. Last change: 2025 Nov 28
+*builtin.txt* For Vim version 9.1. Last change: 2025 Dec 02
VIM REFERENCE MANUAL by Bram Moolenaar
{only with the +quickfix feature}
quickfix 1 if quickfix or location list window
{only with the +quickfix feature}
+ status_height status lines height (0 or 1)
+ tabnr tab page number
terminal 1 if a terminal window
{only with the +terminal feature}
- tabnr tab page number
+ textoff number of columns occupied by any
+ 'foldcolumn', 'signcolumn' and line
+ number in front of the text
topline first displayed buffer line
variables a reference to the dictionary with
window-local variables
otherwise
wincol leftmost screen column of the window;
"col" from |win_screenpos()|
- textoff number of columns occupied by any
- 'foldcolumn', 'signcolumn' and line
- number in front of the text
winid |window-ID|
winnr window number
winrow topmost screen line of the window;
dict_add_number(dict, "winnr", winnr);
dict_add_number(dict, "winid", wp->w_id);
dict_add_number(dict, "height", wp->w_height);
+ dict_add_number(dict, "status_height", wp->w_status_height);
dict_add_number(dict, "winrow", wp->w_winrow + 1);
dict_add_number(dict, "topline", wp->w_topline);
dict_add_number(dict, "botline", wp->w_botline - 1);
bwipe!
endfunc
+func Test_getwininfo_status_height()
+ set laststatus=0
+ vsplit
+ let info = getwininfo(win_getid())[0]
+ call assert_equal(0, info.status_height)
+
+ set laststatus=2
+ let info = getwininfo(win_getid())[0]
+ call assert_equal(1, info.status_height)
+
+ set laststatus=1
+ only
+ let info = getwininfo(win_getid())[0]
+ call assert_equal(0, info.status_height)
+ vsplit
+ let info = getwininfo(win_getid())[0]
+ call assert_equal(1, info.status_height)
+
+ set laststatus&vim
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1944,
/**/
1943,
/**/