patch 9.2.0304: tests: test for 9.2.0285 doesn't always fail without the fix
Commit:
https://github.com/vim/vim/commit/b03970f41f17ce8f27b1c453784763527360d81b
Author: zeertzjq <
zeer...@outlook.com>
Date: Sun Apr 5 16:45:29 2026 +0000
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 <
zeer...@outlook.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim
index 27f2efc2c..739fee528 100644
--- a/src/testdir/test_syntax.vim
+++ b/src/testdir/test_syntax.vim
@@ -997,9 +997,9 @@ func Test_syn_sync_grouphere_shorter_next_line()
bar
fi
END
- let lines = ['a']->repeat(50) + lines + ['a']->repeat(28 + winheight(0))
+ let lines = ['a']->repeat(50) + lines + ['a']->repeat(48)
- new
+ 20new
call setline(1, lines)
syn region shIf transparent
\ start="\<if\_s" skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"
diff --git a/src/version.c b/src/version.c
index 71f8a287d..ddf315372 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 304,
/**/
303,
/**/