-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bram Moolenaar wrote:
> 
> Tim Pope wrote:
> 
>> The documentation for findfile() states
>>
>>              Just like |finddir()|, but find a file instead of a directory.
>>
>> However, the function actually finds both files and directories.  I
>> don't know whether the documentation or behavior is wrong (though
>> I'm rooting for returning files only) but the two are definitely at
>> odds.
> 
> Yes, this does not work as documented.  I'll look into it.

Technically, a directory is a type of file... but the documentation
could at least be clearer.

If "fixing" the behavior would involve the addition of a stat(), I'd
vote for "fixing" the documentation instead.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlnHI7M8hyUobTrERAsqyAJ9HcSxSPJ80xDCmHPr6K46Qzz1ANwCeKjjw
CRxXVPZqswz7xQNaG+VrV5A=
=YITD
-----END PGP SIGNATURE-----

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

Raspunde prin e-mail lui