Fixed #599: Allow input without extension

This commit is contained in:
Karl Yngve Lervåg 2016-10-24 21:36:00 +02:00
parent c68f5ca7c3
commit 04f3c9b272

View File

@ -688,6 +688,10 @@ function! s:file_reaches_current(file) " {{{1
let l:file = fnamemodify(a:file, ':h') . '/' . l:file let l:file = fnamemodify(a:file, ':h') . '/' . l:file
endif endif
if l:file !~# '\.tex$'
let l:file .= '.tex'
endif
if expand('%:p') ==# l:file if expand('%:p') ==# l:file
\ || s:file_reaches_current(l:file) \ || s:file_reaches_current(l:file)
return 1 return 1