diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-17 19:01:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-17 19:01:53 +0000 |
commit | e015d99abb4276f47ce97bad1ad5ff0c658b1c8a (patch) | |
tree | 488caa14036c3ee396883bdff6a265398dbedc77 | |
parent | 64066b9acd9f8cffdf4840f797748f938a13f2d6 (diff) | |
download | vim-git-e015d99abb4276f47ce97bad1ad5ff0c658b1c8a.tar.gz |
patch 8.2.3613: :find test failsv8.2.3613
Problem: :find test fails.
Solution: Put length check inside if block.
-rw-r--r-- | src/findfile.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/findfile.c b/src/findfile.c index b4aed048c..4f457b938 100644 --- 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; diff --git a/src/version.c b/src/version.c index 197f0198a..4f0dac736 100644 --- 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, |