summaryrefslogtreecommitdiff
path: root/src/testdir/test_functions.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-04 18:38:06 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-04 18:38:06 +0200
commitc05d1c043a25c7a52dbf0a740d3f715a9d2691f7 (patch)
tree9b7868328d7e7600e75a33b5802ba5a975cb92dd /src/testdir/test_functions.vim
parentfe136c9a85412f4bdb5de70ef8416af5fa382b28 (diff)
downloadvim-git-c05d1c043a25c7a52dbf0a740d3f715a9d2691f7.tar.gz
patch 8.2.1591: using winheight('.') in tests works but is wrongv8.2.1591
Problem: Using winheight('.') in tests works but is wrong. Solution: Use winheight(0). (issue #6863)
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r--src/testdir/test_functions.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index fd9057ddc..70dc33939 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -1438,19 +1438,19 @@ func Test_setbufvar_options()
let prev_id = win_getid()
wincmd j
- let wh = winheight('.')
+ let wh = winheight(0)
let dummy_buf = bufnr('dummy_buf1', v:true)
call setbufvar(dummy_buf, '&buftype', 'nofile')
execute 'belowright vertical split #' . dummy_buf
- call assert_equal(wh, winheight('.'))
+ call assert_equal(wh, winheight(0))
let dum1_id = win_getid()
wincmd h
- let wh = winheight('.')
+ let wh = winheight(0)
let dummy_buf = bufnr('dummy_buf2', v:true)
eval 'nofile'->setbufvar(dummy_buf, '&buftype')
execute 'belowright vertical split #' . dummy_buf
- call assert_equal(wh, winheight('.'))
+ call assert_equal(wh, winheight(0))
bwipe!
call win_gotoid(prev_id)