From 5b6b1cae34a9e997bf185c269ba9e6be5b420008 Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Tue, 27 Mar 2007 08:19:43 +0000
Subject: [PATCH] updated for version 7.0-221

---
 runtime/doc/eval.txt | 10 ++++++----
 src/eval.c           |  2 +-
 src/version.c        |  2 ++
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 22421bb5cf..ceb82ef113 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2541,10 +2541,12 @@ filter({expr}, {string})					*filter()*
 
 
 finddir({name}[, {path}[, {count}]])				*finddir()*
-		Find directory {name} in {path}.  Returns the path of the
-		first found match.  When the found directory is below the
-		current directory a relative path is returned.  Otherwise a
-		full path is returned.
+		Find directory {name} in {path}.  Supports both downwards and
+		upwards recursive directory searches.  See |file-searching|
+		for the syntax of {path}.
+		Returns the path of the first found match.  When the found
+		directory is below the current directory a relative path is
+		returned.  Otherwise a full path is returned.
 		If {path} is omitted or empty then 'path' is used.
 		If the optional {count} is given, find {count}'s occurrence of
 		{name} in {path} instead of the first one.
diff --git a/src/eval.c b/src/eval.c
index 93d039467d..ea8361524c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -9195,7 +9195,7 @@ findfilendir(argvars, rettv, dir)
 		vim_free(fresult);
 	    fresult = find_file_in_path_option(first ? fname : NULL,
 					       first ? (int)STRLEN(fname) : 0,
-					0, first, path, dir, NULL,
+					0, first, path, dir, curbuf->b_ffname,
 					dir ? (char_u *)"" : curbuf->b_p_sua);
 	    first = FALSE;
 
diff --git a/src/version.c b/src/version.c
index e223c49e8a..dd8741dbd0 100644
--- a/src/version.c
+++ b/src/version.c
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    221,
 /**/
     220,
 /**/
-- 
GitLab