Adam simpkins wrote:

> I think there's a bug in the stop-directory behavior of
> findfile()/finddir().  Everything after the last slash in the stop
> directory is ignored.  For example:
> 
>   :echo findfile('foo.txt', '/tmp/vim/a/b/c/d;/tmp/vim/a/b')
>   /tmp/vim/a/foo.txt
> 
>   :echo findfile('foo.txt', '/tmp/vim/a/b/c/d;/tmp/vim/a/b/')
>   <no output>
> 
> 
> I think the problem is in ff_path_in_stoplist(),
> on line 5307 of src/misc2.c:
> 
>   if (fnamecmp(stopdirs_v[i], path) == 0)
> 
> It looks like this should be:
> 
>   if (fnamencmp(stopdirs_v[i], path, path_len) == 0)

This code is messy.  We need to check that this change doesn't cause
probvlems in other situations.

I'll make a note in the todo list, but I don't expect this to be fixed
soon.

-- 
hundred-and-one symptoms of being an internet addict:
179. You wonder why your household garbage can doesn't have an
     "empty recycle bin" button.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui