aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-04-09 23:19:17 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2024-04-09 23:43:42 +0200
commitd4956e16d9e510b0f8aa9d65ef98ea36dfc5613d (patch)
tree704e842e0ab19d4980f11e62492047ed820499b6 /test
parent832857ae094743bd17e36a0096d1da38fc383178 (diff)
downloadrneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.tar.gz
rneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.tar.bz2
rneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.zip
vim-patch:9.1.0294: Text height function does not respect it's argument
Problem: plines_m_win() does not take into account it's "limit_winheight" argument for filler lines below the last line of the buffer. (after v9.1.0280) Solution: Check window height when "limit_winheight" is TRUE. (Luuk van Baal) https://github.com/vim/vim/commit/08b0f632c125514fe0ea188c36ac048d7d7929d4
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_diffmode.vim14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/old/testdir/test_diffmode.vim b/test/old/testdir/test_diffmode.vim
index 3cc8f97f2f..71483b7469 100644
--- a/test/old/testdir/test_diffmode.vim
+++ b/test/old/testdir/test_diffmode.vim
@@ -1774,17 +1774,19 @@ endfunc
" Ctrl-D reveals filler lines below the last line in the buffer.
func Test_diff_eob_halfpage()
- 5new
+ new
call setline(1, ['']->repeat(10) + ['a'])
diffthis
- call assert_true(5, winheight(5))
- 5new
+ new
call setline(1, ['']->repeat(3) + ['a', 'b'])
diffthis
+ resize 5
wincmd j
- resize 7
- exe "norm! G\<C-D>"
- call assert_equal(6, line('w0'))
+ resize 5
+ norm G
+ call assert_equal(7, line('w0'))
+ exe "norm! \<C-D>"
+ call assert_equal(8, line('w0'))
%bwipe!
endfunc