]> granicus.if.org Git - vim/commitdiff
patch 8.2.3613: :find test fails v8.2.3613
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Nov 2021 19:01:53 +0000 (19:01 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Nov 2021 19:01:53 +0000 (19:01 +0000)
Problem:    :find test fails.
Solution:   Put length check inside if block.

src/findfile.c
src/version.c

index b4aed048ce3c7d15d3f927d92947e7ef40bdfbf7..4f457b9386e3dd7b29f94c82e077e61ee60c6bf5 100644 (file)
@@ -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;
index 197f0198a43c225eba8977a75877912177e093ad..4f0dac736e40ab7a24fef262810ad5edcf2bc653 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3613,
 /**/
     3612,
 /**/