fix(path): restore space separation in 'path' (#25571)

Removing this behavior causes more inconsistencies and bugs.
This commit is contained in:
zeertzjq
2023-10-10 08:22:32 +08:00
committed by GitHub
parent 43f22853fe
commit f5eabaa940
6 changed files with 15 additions and 5 deletions

View File

@@ -848,7 +848,7 @@ static void expand_path_option(char *curdir, garray_T *gap)
char *buf = xmalloc(MAXPATHL);
while (*path_option != NUL) {
copy_option_part(&path_option, buf, MAXPATHL, ",");
copy_option_part(&path_option, buf, MAXPATHL, " ,");
if (buf[0] == '.' && (buf[1] == NUL || vim_ispathsep(buf[1]))) {
// Relative to current buffer: