]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0366: pum: flicker when updating pum in place v9.2.0366
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sun, 19 Apr 2026 20:21:37 +0000 (20:21 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Apr 2026 20:25:02 +0000 (20:25 +0000)
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>
src/insexpand.c
src/version.c

index 2627e4bc3e7906a6a7afdab85de83060e9666d7d..eb9420a19890b8a8d212e7219e3dca3e479f67bd 100644 (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.
index 861b8e4428b6dfeca9134e0429bc991e4ef64f3e..4c2be4b468010861bb3569dd92177f57c77f0ef0 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    366,
 /**/
     365,
 /**/