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, ' ')
This commit is contained in:
benutzer193 2016-08-10 11:13:25 +02:00 committed by Karl Yngve Lervåg
parent 3d86795eb1
commit 12442a74cc

View File

@ -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 . '"'