From: Christian Brabandt Date: Fri, 13 Dec 2024 11:30:20 +0000 (+0100) Subject: patch 9.1.0923: wrong MIN macro in popupmenu.c X-Git-Tag: v9.1.0922^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=618c4d36ca92a62212a37e787c202229ceff8537;p=thirdparty%2Fvim.git patch 9.1.0923: wrong MIN macro in popupmenu.c Problem: wrong MIN macro in popupmenu.c (after v9.1.0921) (zeertzjq) Solution: change it to MAX() Co-authored-by: glepnir Signed-off-by: glepnir Signed-off-by: Christian Brabandt --- diff --git a/src/popupmenu.c b/src/popupmenu.c index 1856b6be58..1faabf44fb 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -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); } } diff --git a/src/version.c b/src/version.c index 1c2398e5c2..47ff826398 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 922, /**/ 921, /**/