Skip to content

Conversation

@girishji
Copy link
Contributor

@girishji girishji commented Mar 3, 2025

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).

#16759 (comment)

M src/ex_getln.c

`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).

M  src/ex_getln.c
@chrisbra
Copy link
Member

chrisbra commented Mar 3, 2025

thanks

@chrisbra chrisbra closed this in d2219d5 Mar 3, 2025
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Mar 3, 2025
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: vim/vim#16778

vim/vim@d2219d5

Co-authored-by: Girish Palya <girishji@gmail.com>
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Mar 3, 2025
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: vim/vim#16778

vim/vim@d2219d5

Co-authored-by: Girish Palya <girishji@gmail.com>
zeertzjq added a commit to deathbeam/neovim that referenced this pull request Mar 3, 2025
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: vim/vim#16778

vim/vim@d2219d5

Co-authored-by: Girish Palya <girishji@gmail.com>
@girishji girishji deleted the wildopt-fix branch March 4, 2025 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants