patch 9.1.1168: wrong flags passed down to nextwild()

Commit: 
https://github.com/vim/vim/commit/d2219d547d2e70ba7af498866b0d12d3b6517b16
Author: Girish Palya <giris...@gmail.com>
Date:   Mon Mar 3 20:01:06 2025 +0100

    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 <giris...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/ex_getln.c b/src/ex_getln.c
index ff1b3eb7b..fa1ea991b 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 29ea4beef..190528b9d 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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tpBFo-006iRX-1Q%40256bit.org.

Raspunde prin e-mail lui