Skip to content

Commit b03970f

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.2.0304: tests: test for 9.2.0285 doesn't always fail without the fix
Problem: When the terminal is very large, test for 9.2.0285 doesn't trigger an ASAN error without the fix. Solution: Use a window with fixed height (zeertzjq) closes: #19924 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent a1f4259 commit b03970f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/testdir/test_syntax.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,9 +997,9 @@ func Test_syn_sync_grouphere_shorter_next_line()
997997
bar
998998
fi
999999
END
1000-
let lines = ['a']->repeat(50) + lines + ['a']->repeat(28 + winheight(0))
1000+
let lines = ['a']->repeat(50) + lines + ['a']->repeat(48)
10011001

1002-
new
1002+
20new
10031003
call setline(1, lines)
10041004
syn region shIf transparent
10051005
\ start="\<if\_s" skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
304,
737739
/**/
738740
303,
739741
/**/

0 commit comments

Comments
 (0)