summaryrefslogtreecommitdiffstats
path: root/autoload/vimtex/include.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-05-20 16:59:09 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-05-20 16:59:09 +0200
commita688c66a049b12e7b19f6ab4cb27c5a24dc3d52c (patch)
tree4f21330aa69ea67c4b32ad89918034e375bd1e1c /autoload/vimtex/include.vim
parent0a7c62b3b22a75f91245a718c1409e4216ae61c8 (diff)
downloadvim-polyglot-a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c.tar.gz
vim-polyglot-a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c.zip
Update
Diffstat (limited to 'autoload/vimtex/include.vim')
-rw-r--r--autoload/vimtex/include.vim3
1 files changed, 2 insertions, 1 deletions
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