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:
@@ -1735,11 +1735,11 @@ find_file_in_path_option(
|
||||
proc->pr_WindowPtr = (APTR)-1L;
|
||||
# endif
|
||||
|
||||
if (len == 0)
|
||||
return NULL;
|
||||
|
||||
if (first == TRUE)
|
||||
{
|
||||
if (len == 0)
|
||||
return NULL;
|
||||
|
||||
// copy file name into NameBuff, expanding environment variables
|
||||
save_char = ptr[len];
|
||||
ptr[len] = NUL;
|
||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3613,
|
||||
/**/
|
||||
3612,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user