Merge pull request #2 from ziman/absolute-paths

Use absolute paths to invoke Idris2
This commit is contained in:
Edwin Brady 2020-04-01 00:53:30 +01:00 committed by GitHub
commit 0fd4094cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,8 +33,8 @@ endfunction
function! s:IdrisCommand(...) function! s:IdrisCommand(...)
let idriscmd = shellescape(join(a:000)) let idriscmd = shellescape(join(a:000))
" echo("idris2 " . expand ('%:t') . " --client " . idriscmd) " echo("idris2 " . expand ('%:p') . " --client " . idriscmd)
return system("idris2 --find-ipkg " . expand ('%:t') . " --client " . idriscmd) return system("idris2 --find-ipkg " . expand ('%:p') . " --client " . idriscmd)
endfunction endfunction
function! IdrisDocFold(lineNum) function! IdrisDocFold(lineNum)
@ -94,8 +94,7 @@ endfunction
function! IdrisReload(q) function! IdrisReload(q)
w w
let file = expand("%:p") let tc = system("idris2 --find-ipkg " . expand ('%:p') . " --client ''")
let tc = system("idris2 --find-ipkg " . expand ('%:t') . " --client ''")
if (! (tc is "")) if (! (tc is ""))
call IWrite(tc) call IWrite(tc)
else else