From: Yasuhiro Matsumoto Date: Sun, 19 Apr 2026 20:21:37 +0000 (+0000) Subject: patch 9.2.0366: pum: flicker when updating pum in place X-Git-Tag: v9.2.0366^0 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=237d77e07ca79f29d724a4ad74bdfd5eca830394;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/insexpand.c b/src/insexpand.c index 2627e4bc3e..eb9420a198 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 861b8e4428..4c2be4b468 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, /**/