comparison src/testdir/test_diffmode.vim @ 34822:67dc61280eba v9.1.0283

patch 9.1.0282: Several small issues in doc and tests Commit: https://github.com/vim/vim/commit/a040019be68859f0667ae475de8d67bb755596ed Author: Christian Brabandt <cb@256bit.org> Date: Tue Apr 9 08:06:52 2024 +0200 patch 9.1.0282: Several small issues in doc and tests Problem: Wrong doc style for pandoc syntax description, Test_diff_eob_halfpage() may fail depending on screen size, using braces in highlight.c when not necessary Solution: Fix pandoc documentation, make sure the window for the test has 7 lines, remove the braces. Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Apr 2024 08:15:06 +0200
parents 8e38ceda0822
children a93a9b349a5e
comparison
equal deleted inserted replaced
34821:96647ff22d2d 34822:67dc61280eba
2029 " Ctrl-D reveals filler lines below the last line in the buffer. 2029 " Ctrl-D reveals filler lines below the last line in the buffer.
2030 func Test_diff_eob_halfpage() 2030 func Test_diff_eob_halfpage()
2031 5new 2031 5new
2032 call setline(1, ['']->repeat(10) + ['a']) 2032 call setline(1, ['']->repeat(10) + ['a'])
2033 diffthis 2033 diffthis
2034 call assert_true(5, winheight(5))
2034 5new 2035 5new
2035 call setline(1, ['']->repeat(3) + ['a', 'b']) 2036 call setline(1, ['']->repeat(3) + ['a', 'b'])
2036 diffthis 2037 diffthis
2037 wincmd j 2038 wincmd j
2039 resize 7
2038 exe "norm! G\<C-D>" 2040 exe "norm! G\<C-D>"
2039 call assert_equal(6, line('w0')) 2041 call assert_equal(6, line('w0'))
2040 2042
2041 %bwipe! 2043 %bwipe!
2042 endfunc 2044 endfunc