Merge pull request #4 from ShinKage/path-escape
Escape the paths passed to idris2
This commit is contained in:
commit
b057b734aa
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ endfunction
|
|||
function! s:IdrisCommand(...)
|
||||
let idriscmd = shellescape(join(a:000))
|
||||
" echo("idris2 " . expand ('%:p') . " --client " . idriscmd)
|
||||
return system("idris2 --find-ipkg " . expand ('%:p') . " --client " . idriscmd)
|
||||
return system("idris2 --find-ipkg " . shellescape(expand('%:p')) . " --client " . idriscmd)
|
||||
endfunction
|
||||
|
||||
function! IdrisDocFold(lineNum)
|
||||
|
@ -94,7 +94,7 @@ endfunction
|
|||
|
||||
function! IdrisReload(q)
|
||||
w
|
||||
let tc = system("idris2 --find-ipkg " . expand ('%:p') . " --client ''")
|
||||
let tc = system("idris2 --find-ipkg " . shellescape(expand('%:p')) . " --client ''")
|
||||
if (! (tc is ""))
|
||||
call IWrite(tc)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue