Skip to content

Commit 44a693a

Browse files
committed
patch 8.1.0186: test for getwininfo() fails in GUI
Problem: Test for getwininfo() fails in GUI. Solution: Account for missing tabline.
1 parent 1ce9a15 commit 44a693a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/testdir/test_bufwintabinfo.vim

+4-3
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ function Test_getbufwintabinfo()
5353
call assert_equal(5, len(winlist))
5454
call assert_equal(winwidth(1), winlist[0].width)
5555
call assert_equal(0, winlist[0].wincol)
56-
call assert_equal(1, winlist[0].winrow) " tabline adds one
56+
let tablineheight = winlist[0].winrow == 1 ? 1 : 0
57+
call assert_equal(tablineheight, winlist[0].winrow) " tabline adds one
5758

5859
call assert_equal(winbufnr(2), winlist[1].bufnr)
5960
call assert_equal(winheight(2), winlist[1].height)
6061
call assert_equal(0, winlist[1].wincol)
61-
call assert_equal(winheight(1) + 2, winlist[1].winrow)
62+
call assert_equal(tablineheight + winheight(1) + 1, winlist[1].winrow)
6263

6364
call assert_equal(1, winlist[2].winnr)
64-
call assert_equal(1, winlist[2].winrow)
65+
call assert_equal(tablineheight, winlist[2].winrow)
6566
call assert_equal(0, winlist[2].wincol)
6667

6768
call assert_equal(winlist[2].width + 1, winlist[3].wincol)

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
186,
792794
/**/
793795
185,
794796
/**/

0 commit comments

Comments
 (0)