Fix #480: Use absolute paths

This commit is contained in:
Karl Yngve Lervåg 2016-06-21 11:31:20 +02:00
parent 304b760624
commit 6bcff44f05

View File

@ -541,8 +541,8 @@ function! s:get_main_from_specifier(spec) " {{{1
if filereadable(l:filename) | return l:filename | endif
else
for l:candidate in [
\ expand('%:p:h') . '/' . l:filename,
\ getcwd() . '/' . l:filename
\ expand('%:p:h') . '/' . l:filename,
\ fnamemodify(getcwd(), ':p') . '/' . l:filename
\]
if filereadable(l:candidate) | return l:candidate | endif
endfor