summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_bufwintabinfo.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-20 11:14:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-20 11:14:24 +0000
commitcdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4 (patch)
tree8e75b5a5e25c30f7bd097b8575692742907baee3 /src/testdir/test_bufwintabinfo.vim
parentb8e642f7ace5382b4dacb7a8effd86f22b828cc1 (diff)
patch 8.2.3627: difficult to know where the text starts in a windowv8.2.3627
Problem: difficult to know where the text starts in a window. (Sergey Vlasov) Solution: Add the "textoff" entry in the result of getwininfo(). (closes #9163)
Diffstat (limited to 'src/testdir/test_bufwintabinfo.vim')
-rw-r--r--src/testdir/test_bufwintabinfo.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_bufwintabinfo.vim b/src/testdir/test_bufwintabinfo.vim
index f201753a22..1d8e74a0dd 100644
--- a/src/testdir/test_bufwintabinfo.vim
+++ b/src/testdir/test_bufwintabinfo.vim
@@ -50,6 +50,7 @@ func Test_getbufwintabinfo()
only
let w1_id = win_getid()
+ setl foldcolumn=3
new
let w2_id = win_getid()
tabnew | let w3_id = win_getid()
@@ -68,6 +69,7 @@ func Test_getbufwintabinfo()
call assert_equal(winbufnr(2), winlist[1].bufnr)
call assert_equal(winheight(2), winlist[1].height)
call assert_equal(1, winlist[1].wincol)
+ call assert_equal(3, winlist[1].textoff) " foldcolumn
call assert_equal(tablineheight + winheight(1) + 2, winlist[1].winrow)
call assert_equal(1, winlist[2].winnr)