mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.885
Problem: When doing an upwards search without wildcards the search fails if the initial directory doesn't exist. Solution: Fix the non-wildcard case. (Stefan Kempf)
This commit is contained in:
@@ -4369,8 +4369,6 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
|
|||||||
temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
|
temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
|
||||||
+ STRLEN(search_ctx->ffsc_fix_path + len)
|
+ STRLEN(search_ctx->ffsc_fix_path + len)
|
||||||
+ 1));
|
+ 1));
|
||||||
}
|
|
||||||
|
|
||||||
if (temp == NULL || wc_path == NULL)
|
if (temp == NULL || wc_path == NULL)
|
||||||
{
|
{
|
||||||
vim_free(buf);
|
vim_free(buf);
|
||||||
@@ -4385,6 +4383,7 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
|
|||||||
vim_free(wc_path);
|
vim_free(wc_path);
|
||||||
search_ctx->ffsc_wc_path = temp;
|
search_ctx->ffsc_wc_path = temp;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
vim_free(buf);
|
vim_free(buf);
|
||||||
}
|
}
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
885,
|
||||||
/**/
|
/**/
|
||||||
884,
|
884,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user