]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0923: wrong MIN macro in popupmenu.c v9.1.0922
authorChristian Brabandt <cb@256bit.org>
Fri, 13 Dec 2024 11:30:20 +0000 (12:30 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 13 Dec 2024 11:30:20 +0000 (12:30 +0100)
Problem:  wrong MIN macro in popupmenu.c (after v9.1.0921)
          (zeertzjq)
Solution: change it to MAX()

Co-authored-by: glepnir <glephunter@gmail.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupmenu.c
src/version.c

index 1856b6be5823edf5a7167ceef22a3679332b3bf0..1faabf44fb35f5fac182d2d5682cf44862332ac3 100644 (file)
@@ -327,7 +327,7 @@ pum_display(
                    }
                }
                else if (pum_width > content_width && pum_width > p_pw)
-                   pum_width = MIN(content_width, p_pw);
+                   pum_width = MAX(content_width, p_pw);
            }
 
        }
index 1c2398e5c2a1b8232a17da7de057f4e76209c6fe..47ff826398a34a853246942714dbff163197d89f 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    922,
 /**/
     921,
 /**/