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>
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.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 366,
/**/
365,
/**/