vim-patch:9.1.0283: Several small issues in doc and tests (#28249)

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.

a040019be6

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2024-04-09 16:42:39 +08:00 committed by GitHub
parent 102720be94
commit 4946489e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -2059,7 +2059,7 @@ can use the "PANDOC=VIM" syntax. For example: >
To use italics and strong in emphases. Default = 1 >
:let *g:pandoc#syntax#style#emphases = 1
:let g:pandoc#syntax#style#emphases = 1
"0" will add "block" to g:pandoc#syntax#conceal#blacklist, because otherwise
you couldn't tell where the styles are applied.

View File

@ -1777,10 +1777,12 @@ func Test_diff_eob_halfpage()
5new
call setline(1, ['']->repeat(10) + ['a'])
diffthis
call assert_true(5, winheight(5))
5new
call setline(1, ['']->repeat(3) + ['a', 'b'])
diffthis
wincmd j
resize 7
exe "norm! G\<C-D>"
call assert_equal(6, line('w0'))