diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index 36dfe7c..a5ffa4f 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -193,7 +193,7 @@ function! s:bib.search(regexp) dict " {{{2 endif " Return to previous working directory - execute 'lcd ' . fnameescape(l:save_pwd) + execute 'lcd' fnameescape(l:save_pwd) " Find data from 'thebibliography' environments let lines = readfile(b:vimtex.tex) diff --git a/autoload/vimtex/util.vim b/autoload/vimtex/util.vim index c4fb465..88b712f 100644 --- a/autoload/vimtex/util.vim +++ b/autoload/vimtex/util.vim @@ -34,7 +34,7 @@ function! vimtex#util#execute(exe) " {{{1 " Change directory if wanted if has_key(a:exe, 'wd') let pwd = getcwd() - execute 'lcd ' . fnameescape(a:exe.wd) + execute 'lcd' fnameescape(a:exe.wd) endif " Set up command string based on the given system @@ -91,7 +91,7 @@ function! vimtex#util#execute(exe) " {{{1 " Return to previous working directory if has_key(a:exe, 'wd') - execute 'lcd ' . fnameescape(pwd) + execute 'lcd' fnameescape(pwd) endif endfunction @@ -170,7 +170,7 @@ endfunction " }}}1 function! vimtex#util#kpsewhich(file, ...) " {{{1 - execute 'lcd' . fnameescape(b:vimtex.root) + execute 'lcd' fnameescape(b:vimtex.root) let cmd = 'kpsewhich ' let cmd .= a:0 > 0 ? a:1 : '' let cmd .= ' "' . a:file . '"'