mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
@@ -484,28 +484,21 @@ vim_findfile_init (
|
|||||||
len = (int)(p - search_ctx->ffsc_fix_path) - 1;
|
len = (int)(p - search_ctx->ffsc_fix_path) - 1;
|
||||||
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
|
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
|
||||||
add_pathsep((char *)ff_expand_buffer);
|
add_pathsep((char *)ff_expand_buffer);
|
||||||
} else
|
} else {
|
||||||
len = (int)STRLEN(search_ctx->ffsc_fix_path);
|
len = (int)STRLEN(search_ctx->ffsc_fix_path);
|
||||||
|
}
|
||||||
|
|
||||||
if (search_ctx->ffsc_wc_path != NULL) {
|
if (search_ctx->ffsc_wc_path != NULL) {
|
||||||
wc_path = vim_strsave(search_ctx->ffsc_wc_path);
|
wc_path = vim_strsave(search_ctx->ffsc_wc_path);
|
||||||
temp = xmalloc(STRLEN(search_ctx->ffsc_wc_path)
|
temp = xmalloc(STRLEN(search_ctx->ffsc_wc_path)
|
||||||
+ STRLEN(search_ctx->ffsc_fix_path + len)
|
+ STRLEN(search_ctx->ffsc_fix_path + len)
|
||||||
+ 1);
|
+ 1);
|
||||||
}
|
STRCPY(temp, search_ctx->ffsc_fix_path + len);
|
||||||
|
STRCAT(temp, search_ctx->ffsc_wc_path);
|
||||||
if (temp == NULL || wc_path == NULL) {
|
xfree(search_ctx->ffsc_wc_path);
|
||||||
xfree(buf);
|
|
||||||
xfree(temp);
|
|
||||||
xfree(wc_path);
|
xfree(wc_path);
|
||||||
goto error_return;
|
search_ctx->ffsc_wc_path = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
STRCPY(temp, search_ctx->ffsc_fix_path + len);
|
|
||||||
STRCAT(temp, search_ctx->ffsc_wc_path);
|
|
||||||
xfree(search_ctx->ffsc_wc_path);
|
|
||||||
xfree(wc_path);
|
|
||||||
search_ctx->ffsc_wc_path = temp;
|
|
||||||
}
|
}
|
||||||
xfree(buf);
|
xfree(buf);
|
||||||
}
|
}
|
||||||
|
@@ -403,7 +403,7 @@ static int included_patches[] = {
|
|||||||
// 888,
|
// 888,
|
||||||
887,
|
887,
|
||||||
// 886 NA
|
// 886 NA
|
||||||
// 885,
|
885,
|
||||||
// 884 NA
|
// 884 NA
|
||||||
883,
|
883,
|
||||||
// 882,
|
// 882,
|
||||||
|
Reference in New Issue
Block a user