mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.1.0761: :cd completion fails on Windows with backslash in path (#30703)
Problem: :cd completion fails on Windows with backslash in path
Solution: switch no_bslash argument to FALSE in file_pat_to_reg_pat()
Note: only fixes the problem on Windows. For Unix, we still need to
escape backslashes since those are taken as regex atoms (and could be
invalid regex atoms).
fixes: vim/vim#15643
closes: vim/vim#15808
1a31c430bb
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -959,7 +959,7 @@ static void uniquefy_paths(garray_T *gap, char *pattern, char *path_option)
|
||||
file_pattern[0] = '*';
|
||||
file_pattern[1] = NUL;
|
||||
strcat(file_pattern, pattern);
|
||||
char *pat = file_pat_to_reg_pat(file_pattern, NULL, NULL, true);
|
||||
char *pat = file_pat_to_reg_pat(file_pattern, NULL, NULL, false);
|
||||
xfree(file_pattern);
|
||||
if (pat == NULL) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user