On Sat, Aug 14, 2010 at 3:20 AM, Bram Moolenaar <[email protected]> wrote:
> I have now taken another look at the code.  I have done a few cleanups.
>
> I found one bug: when 'path' has an item "./subdir" it was not used
> relative to the current buffer.

Attached patch adds a check for this in test73.

> Please check that I didn't break anything.

Looks good.

nazri

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff --git a/src/testdir/test73.in b/src/testdir/test73.in
index 3518e80..5472247 100644
--- a/src/testdir/test73.in
+++ b/src/testdir/test73.in
@@ -150,6 +150,14 @@ SVoyager 2:w
 :exec "cd " . cwd . "/Xfind/in"
 :find file	
 :exec "w >>" . test_out
+:" Test for relative to current buffer 'path' item
+:exec "cd " . cwd . "/Xfind/"
+:set path=./path
+:" Open the file where Jimmy Hoffa is found
+:e in/file.txt
+:" Find the file containing 'E.T.' in the Xfind/in/path directory
+:find file	
+:exec "w >>" . test_out
 :q
 :exec "cd " . cwd
 :call DeleteDirectory("Xfind")
diff --git a/src/testdir/test73.ok b/src/testdir/test73.ok
index 4dd48fb..366f951 100644
--- a/src/testdir/test73.ok
+++ b/src/testdir/test73.ok
@@ -16,3 +16,4 @@ Voyager 1
 Voyager 1
 Voyager 2
 Jimmy Hoffa
+E.T.

Raspunde prin e-mail lui