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;
|
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;
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user