patch 9.2.0228: still possible flicker
Commit:
https://github.com/vim/vim/commit/0b257ecb90052e74a45ce4a44f968d3ce9c35681
Author: Yasuhiro Matsumoto <
matt...@gmail.com>
Date: Sun Mar 22 17:21:09 2026 +0000
patch 9.2.0228: still possible flicker
Problem: still possible flicker
Solution: Use redraw_as_cleared() instead of screenclear() to avoid
flicker (Yasuhiro Matsumoto).
When the window width matches the frame width, screenclear() causes
visible flicker. Use redraw_as_cleared() instead which marks the
screen for redraw without actually clearing it.
closes: #19732
Signed-off-by: Yasuhiro Matsumoto <
matt...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/screen.c b/src/screen.c
index 4f7fc3511..fa3b3860f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -3819,7 +3819,7 @@ win_do_lines(
&& wp->w_width == topframe->fr_width)
{
if (!no_win_do_lines_ins)
- screenclear(); // will set wp->w_lines_valid to 0
+ redraw_as_cleared(); // don't clear the screen to avoid flicker
return FAIL;
}
diff --git a/src/version.c b/src/version.c
index ca86462ff..0c801dd2e 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 */
+/**/
+ 228,
/**/
227,
/**/