From a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 20 May 2020 16:59:09 +0200 Subject: Update --- autoload/vimtex/include.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autoload/vimtex/include.vim') diff --git a/autoload/vimtex/include.vim b/autoload/vimtex/include.vim index 830292c5..59c37977 100644 --- a/autoload/vimtex/include.vim +++ b/autoload/vimtex/include.vim @@ -82,7 +82,8 @@ endfunction " }}}1 function! s:search_candidates_texinputs(fname) abort " {{{1 for l:suffix in [''] + split(&l:suffixesadd, ',') - let l:candidates = glob(b:vimtex.root . '/**/' . a:fname . l:suffix, 0, 1) + let l:candidates = glob(b:vimtex.root . '/**/' + \ . fnameescape(a:fname) . l:suffix, 0, 1) if !empty(l:candidates) return l:candidates[0] endif -- cgit v1.2.3