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

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