From 81f67b79e8a307a45a996dbeee0213c7745aa358 Mon Sep 17 00:00:00 2001 From: Leonardo Mello Date: Mon, 9 Oct 2023 19:08:58 -0300 Subject: fix(file_search): path with spaces in finddir() and findfile() (#25493) Co-authored-by: dundargoc --- src/nvim/file_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index 7a46341797..796d66f74c 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -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); -- cgit