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:
parent
3d86795eb1
commit
12442a74cc
@ -170,7 +170,7 @@ endfunction
|
|||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! vimtex#util#kpsewhich(file, ...) " {{{1
|
function! vimtex#util#kpsewhich(file, ...) " {{{1
|
||||||
execute 'lcd' b:vimtex.root
|
execute 'lcd' . fnameescape(b:vimtex.root)
|
||||||
let cmd = 'kpsewhich '
|
let cmd = 'kpsewhich '
|
||||||
let cmd .= a:0 > 0 ? a:1 : ''
|
let cmd .= a:0 > 0 ? a:1 : ''
|
||||||
let cmd .= ' "' . a:file . '"'
|
let cmd .= ' "' . a:file . '"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user