diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index 1b74909..6700c69 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -681,8 +681,7 @@ function! s:file_reaches_current(file) " {{{1 for l:line in readfile(a:file) let l:file = matchstr(l:line, - \ '\v\\%(input|include|subimport\{[^\}]*\})\s*\{\zs' - \ . '((.*)\/)?[a-zA-Z._-]+') + \ '\v\\%(input|include|subimport\{[^\}]*\})\s*\{\zs\f+') if empty(l:file) | continue | endif if l:file[0] !=# '/'