From 12442a74cc62e96428430f9afb4a0ec9d953fdc0 Mon Sep 17 00:00:00 2001 From: benutzer193 Date: Wed, 10 Aug 2016 11:13:25 +0200 Subject: [PATCH] Escape path for lcd (#519) * Escape Spaces in filepath Fixes error, when lcd tries to change folder to Root folder containing spaces. * fnameescape(path) instead of escape(path, ' ') --- autoload/vimtex/util.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/util.vim b/autoload/vimtex/util.vim index cb59436..d2665e1 100644 --- a/autoload/vimtex/util.vim +++ b/autoload/vimtex/util.vim @@ -170,7 +170,7 @@ endfunction " }}}1 function! vimtex#util#kpsewhich(file, ...) " {{{1 - execute 'lcd' b:vimtex.root + execute 'lcd' . fnameescape(b:vimtex.root) let cmd = 'kpsewhich ' let cmd .= a:0 > 0 ? a:1 : '' let cmd .= ' "' . a:file . '"'