patch 9.2.0340: pum_redraw() may cause flicker
Commit:
https://github.com/vim/vim/commit/efedcd1e6f369e1dcc92ae0cc2c4c8020f08738e
Author: Yasuhiro Matsumoto <[email protected]>
Date: Sun Apr 12 16:24:09 2026 +0000
patch 9.2.0340: pum_redraw() may cause flicker
Problem: pum_redraw() may cause flicker
Solution: Wrap pum_redraw() in synchronized output to avoid flicker
(Yasuhiro Matsumoto)
closes: #19955
Signed-off-by: Yasuhiro Matsumoto <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/popupmenu.c b/src/popupmenu.c
index 2ee720087..a50faaa05 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -953,6 +953,10 @@ pum_redraw(void)
// Use current window for highlight overrides when using 'winhighlight'
override_success = push_highlight_overrides(curwin->w_hl,
curwin->w_hl_len);
+ // Batch the underlying screen update and the pum drawing into a single
+ // synchronized output frame to avoid flicker.
+ term_set_sync_output(TERM_SYNC_OUTPUT_ENABLE);
+
hlf_T hlfsNorm[3];
hlf_T hlfsSel[3];
// "word"/"abbr"
@@ -1187,6 +1191,8 @@ pum_redraw(void)
if (override_success)
pop_highlight_overrides();
+
+ term_set_sync_output(TERM_SYNC_OUTPUT_DISABLE);
}
#if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
diff --git a/src/version.c b/src/version.c
index fc4876381..560233faf 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 */
+/**/
+ 340,
/**/
339,
/**/
--
--
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/E1wBxhK-00Ggm2-Ez%40256bit.org.