diff options
| author | glepnir <glephunter@gmail.com> | 2026-05-02 10:51:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-02 10:51:44 +0800 |
| commit | 941f2f9522c5a6a486256ce7545ff252d5e2573e (patch) | |
| tree | e19ba089b14970ef8fe668db9535e386f1a283bc /src/nvim/lua/executor.c | |
| parent | 085bb518c894a6b03aaf23ba81242c2c6126bea8 (diff) | |
| download | rneovim-941f2f9522c5a6a486256ce7545ff252d5e2573e.tar.gz rneovim-941f2f9522c5a6a486256ce7545ff252d5e2573e.tar.bz2 rneovim-941f2f9522c5a6a486256ce7545ff252d5e2573e.zip | |
vim-patch:9.2.0418: wildcards in expanded env vars reinterpreted by glob (#39517)
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" (glepnir).
closes: vim/vim#20053
https://github.com/vim/vim/commit/20e98ff1cc3ffc13d42579d2bf9b9567f98595a2
Diffstat (limited to 'src/nvim/lua/executor.c')
0 files changed, 0 insertions, 0 deletions