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)
--
Adam Simpkins
[email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---