patch 9.2.0115: popup: screen flickering possible during async callbacks
Commit:
https://github.com/vim/vim/commit/f3b566481c39b6c5fbbe96a93432d526bc76ab32
Author: Yasuhiro Matsumoto <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
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/E1vyov4-00B4uH-Tz%40256bit.org.