diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index e6bf5be..ed8724c 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -411,7 +411,7 @@ function! s:img.get_graphicspaths() dict " {{{2 " Parse preamble for graphicspath command let l:graphicspath = matchstr(join(l:preamble, ' '), - \ '\\graphicspath{\s*{\s*\zs.*\ze\s*}\s*}') + \ '\\graphicspath{\s*{\s*\zs.\{-}\ze\s*}\s*}') let self.graphicspaths = map(split(l:graphicspath, '}\s*{'), \ 'v:val[0] ==# ''/'' ? v:val : simplify(b:vimtex.root . ''/'' . v:val)') endfunction