Fix #480: Use absolute paths
This commit is contained in:
parent
304b760624
commit
6bcff44f05
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user