diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-11-26 07:53:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 07:53:07 +0800 |
commit | 66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d (patch) | |
tree | 82fc231a3912ecdba0896a63ef1ef8b5ac05ee43 /test/old | |
parent | c644228e1dfe9f70aae53292b328be98dc95b8f7 (diff) | |
download | rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.tar.gz rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.tar.bz2 rneovim-66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d.zip |
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
https://github.com/vim/vim/commit/0a850673e3d4193d55f47bcbbc0b0da5f155307d
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test/old')
-rw-r--r-- | test/old/testdir/test_bufwintabinfo.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/old/testdir/test_bufwintabinfo.vim b/test/old/testdir/test_bufwintabinfo.vim index 57492e07c9..0a4bd0b674 100644 --- a/test/old/testdir/test_bufwintabinfo.vim +++ b/test/old/testdir/test_bufwintabinfo.vim @@ -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)) |