Skip to content

Remove unneeded logic - #16778

Closed
girishji wants to merge 1 commit into
vim:masterfrom
girishji:wildopt-fix
Closed

girishji wants to merge 1 commit into
vim:masterfrom
girishji:wildopt-fix

Conversation

@girishji

@girishji girishji commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

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

chrisbra commented Mar 3, 2025

Copy link
Copy Markdown
Member

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@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