Fix #543: Ensure space between lcd and path
This commit is contained in:
parent
f9f1dd5c29
commit
275304e824
@ -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)
|
||||
|
@ -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 . '"'
|
||||
|
Loading…
Reference in New Issue
Block a user