patch 9.2.0228: still possible flicker
Commit:
https://github.com/vim/vim/commit/0b257ecb90052e74a45ce4a44f968d3ce9c35681
Author: Yasuhiro Matsumoto <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1w4Mcl-000kdk-Dd%40256bit.org.