changeset 26163:97b7db88e094 v8.2.3613

patch 8.2.3613: :find test fails Commit: https://github.com/vim/vim/commit/e015d99abb4276f47ce97bad1ad5ff0c658b1c8a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 17 19:01:53 2021 +0000 patch 8.2.3613: :find test fails Problem: :find test fails. Solution: Put length check inside if block.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Nov 2021 20:15:05 +0100
parents dec9a06eec86
children 54e3f0441e89
files src/findfile.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3613,
+/**/
     3612,
 /**/
     3611,