mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
vim-patch:9.1.0888: leftcol property not available in getwininfo() (#31349)
Problem: leftcol property not available in getwininfo()
Solution: add leftcol property property (glepnir)
closes: vim/vim#16119
0a850673e3
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -114,6 +114,18 @@ func Test_getbufwintabinfo()
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user