Use shellescape on file names [fixes #9]
This commit is contained in:
parent
407e8d19e9
commit
587f560c41
@ -118,10 +118,10 @@ function! s:init_environment()
|
||||
let b:latex.id = id
|
||||
else
|
||||
let data = {}
|
||||
let data.tex = main
|
||||
let data.root = fnamemodify(data.tex, ':h')
|
||||
let data.base = fnamemodify(data.tex, ':t')
|
||||
let data.name = fnamemodify(data.tex, ':t:r')
|
||||
let data.tex = shellescape(main)
|
||||
let data.root = shellescape(fnamemodify(data.tex, ':h'))
|
||||
let data.base = shellescape(fnamemodify(data.tex, ':t'))
|
||||
let data.name = shellescape(fnamemodify(data.tex, ':t:r'))
|
||||
function data.aux() dict
|
||||
return s:get_main_ext(self, 'aux')
|
||||
endfunction
|
||||
@ -282,7 +282,7 @@ function! s:get_main_ext(texdata, ext)
|
||||
for f in map(candidates,
|
||||
\ 'a:texdata.root . ''/'' . v:val . ''.'' . a:ext')
|
||||
if filereadable(f)
|
||||
return fnamemodify(f, ':p')
|
||||
return shellescape(fnamemodify(f, ':p'))
|
||||
endif
|
||||
endfor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user