patch 9.2.0366: pum: flicker when updating pum in place
Commit:
https://github.com/vim/vim/commit/237d77e07ca79f29d724a4ad74bdfd5eca830394
Author: Yasuhiro Matsumoto <[email protected]>
Date: Sun Apr 19 20:21:37 2026 +0000
patch 9.2.0366: pum: flicker when updating pum in place
Problem: pum: flicker when updating pum in place
Solution: Skip update_screen() when the popup menu is redrawn
at the same position (Yasuhiro Matsumoto).
closes: #20015
Signed-off-by: Yasuhiro Matsumoto <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/insexpand.c b/src/insexpand.c
index 2627e4bc3..eb9420a19 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1828,8 +1828,9 @@ ins_compl_show_pum(void)
if (!pum_wanted() || !pum_enough_matches())
return;
- // Update the screen later, before drawing the popup menu over it.
- pum_call_update_screen();
+ // Avoid redrawing the screen under a pum that stays in place.
+ if (!pum_redraw_in_same_position())
+ pum_call_update_screen();
if (compl_match_array == NULL)
// Need to build the popup menu list.
diff --git a/src/version.c b/src/version.c
index 861b8e442..4c2be4b46 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 */
+/**/
+ 366,
/**/
365,
/**/
--
--
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/E1wEYmN-00B36C-31%40256bit.org.