Fixed minor issue (cf. #599)

This commit is contained in:
Karl Yngve Lervåg 2016-11-09 23:37:49 +01:00
parent 55a5923869
commit 68e6e3b27a

View File

@ -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] !=# '/'