On 7/25/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote:
Dnia wtorek, 25 lipca 2006 02:14, Eric Van Dewoestine napisaĆ:
> > 1. We are in /home/mikolaj::
> >
> > echo findifile("b", "1;")
> > 1/b
>
> You are giving findfile() a relative path to search, so it is
> returning a relative result.
Result is the same regardless to path in second argument.
Yes, my mistake. From the vim docs:
"When the found directory is below the
current directory a relative path is returned. Otherwise a
full path is returned."
1) 1/b is below your current directory so a relative path is returned
as described in the documentation.
2) 3) In these examples the result is not at or below the current directory.
So, the results are still consistent with the documented behavior.
Regarding ';', the docs imply that it forces a search upwards, but
should probably state that explicitly.
--
eric