osyo-manga / vim-snowdrop

libclang in Vim
21 stars 1 forks source link

Use filereadable() instead of executable() #1

Closed suy closed 10 years ago

suy commented 10 years ago

Hi.

I'm not sure if you used the executable() function for checking the presence of the clang library on Windows because it does some automatic file discovery (I don't have Windows to try now), but on Linux certainly is not going to work, since libraries don't need the executable bit, and rarely have it.

This small change works for me for finding the library. Let me know if you think is wrong on Windows or Mac, and I will try to test it there.

osyo-manga commented 10 years ago

Thanks pull request :)

suy commented 10 years ago

Thank you! :)