patch 9.2.0366: pum: flicker when updating pum in place
Commit:
https://github.com/vim/vim/commit/237d77e07ca79f29d724a4ad74bdfd5eca830394
Author: Yasuhiro Matsumoto <
matt...@gmail.com>
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 <
matt...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
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,
/**/