]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0228: still possible flicker v9.2.0228
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sun, 22 Mar 2026 17:21:09 +0000 (17:21 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 22 Mar 2026 17:21:09 +0000 (17:21 +0000)
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 <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/screen.c
src/version.c

index 4f7fc35113433aefd028c3bd5597060cfc36b92b..fa3b3860f68b1290dcf529ddf167085cb5240135 100644 (file)
@@ -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;
     }
 
index ca86462ff0fa82b000891e9432577dc74c3d74ae..0c801dd2edb756e0e595c92a111bd389702368cf 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    228,
 /**/
     227,
 /**/