patch 8.2.1591: using winheight('.') in tests works but is wrong
Problem: Using winheight('.') in tests works but is wrong.
Solution: Use winheight(0). (issue #6863)
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim
index 8faf69a..1faf02d 100644
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -261,13 +261,13 @@
" Open the window
Xopen 5
call assert_true(winnr('$') == 2 && getline('.') ==# '|| non-error 1'
- \ && winheight('.') == 5)
+ \ && winheight(0) == 5)
" Opening the window again, should move the cursor to that window
wincmd t
Xopen 7
call assert_true(winnr('$') == 2 && winnr() == 2 &&
- \ winheight('.') == 7 &&
+ \ winheight(0) == 7 &&
\ getline('.') ==# '|| non-error 1')
" :cnext in quickfix window should move to the next entry