]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1168: wrong flags passed down to nextwild() v9.1.1168
authorGirish Palya <girishji@gmail.com>
Mon, 3 Mar 2025 19:01:06 +0000 (20:01 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 3 Mar 2025 19:01:06 +0000 (20:01 +0100)
commitd2219d547d2e70ba7af498866b0d12d3b6517b16
treee5310298d2f8f1084e0ab862b0c5d5e03cb66b79
parent360a39ae6c823dd3e3c89c209b544f345c6d86dd
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 <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_getln.c
src/version.c