From: Girish Palya Date: Mon, 3 Mar 2025 19:01:06 +0000 (+0100) Subject: patch 9.1.1168: wrong flags passed down to nextwild() X-Git-Tag: v9.1.1168^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2219d547d2e70ba7af498866b0d12d3b6517b16;p=thirdparty%2Fvim.git patch 9.1.1168: wrong flags passed down to nextwild() Problem: wrong flags passed down to nextwild() (zeertzjq, after v9.1.1166) Solution: only pass options flags (Girish Palya) `options` needs to be passed into nextwild() since it may contain WILD_KEEP_SOLE_ITEM which prevents the menu items list from getting freed if there is only 1 item left (if `noselect` is set). closes: #16778 Signed-off-by: Girish Palya Signed-off-by: Christian Brabandt --- diff --git a/src/ex_getln.c b/src/ex_getln.c index ff1b3eb7b2..fa1ea991b6 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -977,7 +977,7 @@ cmdline_wildchar_complete( p_wmnu = 0; // remove match - nextwild(xp, WILD_PREV, 0 | (options & ~WIM_NOSELECT), escape); + nextwild(xp, WILD_PREV, options, escape); p_wmnu = p_wmnu_save; } (void)showmatches(xp, p_wmnu diff --git a/src/version.c b/src/version.c index 29ea4beef6..190528b9d8 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 */ +/**/ + 1168, /**/ 1167, /**/