Commit: patch 9.2.0115: popup: screen flickering possible during async callbacks

2 views
Skip to first unread message

Christian Brabandt

unread,
Mar 7, 2026, 5:31:55 AMMar 7
to vim...@googlegroups.com
patch 9.2.0115: popup: screen flickering possible during async callbacks

Commit: https://github.com/vim/vim/commit/f3b566481c39b6c5fbbe96a93432d526bc76ab32
Author: Yasuhiro Matsumoto <matt...@gmail.com>
Date: Sat Mar 7 10:22:28 2026 +0000

patch 9.2.0115: popup: screen flickering possible during async callbacks

Problem: popup: When an async redraw is triggered, the screen may flicker
because the terminal may render the intermediate states of the
redraw.
Solution: Enable synchronized output if possible to ensure the terminal
renders the entire update at once (Yasuhiro Matsumoto).

closes: #19584
Signed-off-by: Yasuhiro Matsumoto <matt...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/drawscreen.c b/src/drawscreen.c
index bdaaaf0be..68ba60572 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -3167,6 +3167,8 @@ redraw_after_callback(int call_update_screen, int do_message)
{
++redrawing_for_callback;

+ term_set_sync_output(TERM_SYNC_OUTPUT_ENABLE);
+
if (State == MODE_HITRETURN || State == MODE_ASKMORE
|| State == MODE_SETWSIZE || State == MODE_EXTERNCMD
|| State == MODE_CONFIRM || exmode_active)
@@ -3211,6 +3213,7 @@ redraw_after_callback(int call_update_screen, int do_message)
}
}
cursor_on();
+ term_set_sync_output(TERM_SYNC_OUTPUT_DISABLE);
#ifdef FEAT_GUI
if (gui.in_use && !gui_mch_is_blink_off())
// Don't update the cursor when it is blinking and off to avoid
diff --git a/src/version.c b/src/version.c
index 6c37163dc..d083d0c05 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 */
+/**/
+ 115,
/**/
114,
/**/
Reply all
Reply to author
Forward
0 new messages