-*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 18
+*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 26
VIM REFERENCE MANUAL by Bram Moolenaar
botline last complete displayed buffer line
bufnr number of buffer in the window
height window height (excluding winbar)
+ leftcol first column displayed; only used when
+ 'wrap' is off
loclist 1 if showing a location list
{only with the +quickfix feature}
quickfix 1 if quickfix or location list window
dict_add_number(dict, "wincol", wp->w_wincol + 1);
dict_add_number(dict, "textoff", win_col_off(wp));
dict_add_number(dict, "bufnr", wp->w_buffer->b_fnum);
+ dict_add_number(dict, "leftcol", wp->w_leftcol);
#ifdef FEAT_TERMINAL
dict_add_number(dict, "terminal", bt_terminal(wp->w_buffer));
wincmd t | only
endfunc
+function Test_get_wininfo_leftcol()
+ set nowrap
+ set winwidth=10
+ vsp
+ call setline(1, ['abcdefghijklmnopqrstuvwxyz'])
+ norm! 5zl
+ call assert_equal(5, getwininfo()[0].leftcol)
+ bwipe!
+ set wrap&
+ set winwidth&
+endfunc
+
function Test_get_buf_options()
let opts = bufnr()->getbufvar('&')
call assert_equal(v:t_dict, type(opts))
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 888,
/**/
887,
/**/