Fixed #599: Allow input without extension
This commit is contained in:
parent
c68f5ca7c3
commit
04f3c9b272
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user