diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-09 22:43:49 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-09 22:43:49 +0200 |
commit | 08b0f632c125514fe0ea188c36ac048d7d7929d4 (patch) | |
tree | 421b119a51b623bb188982b9747042fbb10cfd38 /src/testdir | |
parent | 41208884b8c1a73b42ddb6c1e5f008dae6aa0a83 (diff) |
patch 9.1.0294: Text height function does not respect it's argumentv9.1.0294
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)
closes: #14449
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_diffmode.vim | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index f28e840ac5..098d5d0fc6 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -2025,17 +2025,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 |