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 <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yasuhiro Matsumoto
2026-04-19 20:21:37 +00:00
committed by Christian Brabandt
parent 1966a1c896
commit 237d77e07c
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -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.
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
366,
/**/
365,
/**/