fix(file_search): path with spaces in finddir() and findfile() (#25493)

Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
Leonardo Mello
2023-10-09 19:08:58 -03:00
committed by GitHub
parent 4ab2b43c8f
commit 81f67b79e8
2 changed files with 40 additions and 3 deletions

View File

@@ -1468,7 +1468,7 @@ char *find_file_in_path_option(char *ptr, size_t len, int options, int first, ch
// copy next path
buf[0] = 0;
copy_option_part(&dir, buf, MAXPATHL, ",");
copy_option_part(&dir, buf, MAXPATHL, " ,");
// get the stopdir string
r_ptr = vim_findfile_stopdir(buf);