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
|
let b:latex.id = id
|
||||||
else
|
else
|
||||||
let data = {}
|
let data = {}
|
||||||
let data.tex = main
|
let data.tex = shellescape(main)
|
||||||
let data.root = fnamemodify(data.tex, ':h')
|
let data.root = shellescape(fnamemodify(data.tex, ':h'))
|
||||||
let data.base = fnamemodify(data.tex, ':t')
|
let data.base = shellescape(fnamemodify(data.tex, ':t'))
|
||||||
let data.name = fnamemodify(data.tex, ':t:r')
|
let data.name = shellescape(fnamemodify(data.tex, ':t:r'))
|
||||||
function data.aux() dict
|
function data.aux() dict
|
||||||
return s:get_main_ext(self, 'aux')
|
return s:get_main_ext(self, 'aux')
|
||||||
endfunction
|
endfunction
|
||||||
@ -282,7 +282,7 @@ function! s:get_main_ext(texdata, ext)
|
|||||||
for f in map(candidates,
|
for f in map(candidates,
|
||||||
\ 'a:texdata.root . ''/'' . v:val . ''.'' . a:ext')
|
\ 'a:texdata.root . ''/'' . v:val . ''.'' . a:ext')
|
||||||
if filereadable(f)
|
if filereadable(f)
|
||||||
return fnamemodify(f, ':p')
|
return shellescape(fnamemodify(f, ':p'))
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user