0
0
mirror of https://github.com/vim/vim.git synced 2025-10-15 07:14:09 -04:00

patch 8.2.3613: :find test fails

Problem:    :find test fails.
Solution:   Put length check inside if block.
This commit is contained in:
Bram Moolenaar
2021-11-17 19:01:53 +00:00
parent 64066b9acd
commit e015d99abb
2 changed files with 5 additions and 3 deletions

View File

@@ -1735,11 +1735,11 @@ find_file_in_path_option(
proc->pr_WindowPtr = (APTR)-1L; proc->pr_WindowPtr = (APTR)-1L;
# endif # endif
if (first == TRUE)
{
if (len == 0) if (len == 0)
return NULL; return NULL;
if (first == TRUE)
{
// copy file name into NameBuff, expanding environment variables // copy file name into NameBuff, expanding environment variables
save_char = ptr[len]; save_char = ptr[len];
ptr[len] = NUL; ptr[len] = NUL;

View File

@@ -757,6 +757,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 */
/**/
3613,
/**/ /**/
3612, 3612,
/**/ /**/