Problem: With $d='[dir]', :e $d/file.txt opens the wrong file, :e $d/<Tab> fails to complete, and glob('$d/*') returns nothing. Wildcard characters inside expanded environment variables get picked up by globbing again.
Solution: Turn the 4th parameter of expand_env_esc() from a bool into a string of characters to escape in each expanded value. Callers that pass the result to wildcard expansion should include PATH_ESC_WILDCARDS in addition to " \t".
Related neovim/neovim#31334
https://github.com/vim/vim/pull/20053
(7 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()