[Fix] E121: Undefined variable: file in IdrisReload

This commit is contained in:
neriglissar 2020-05-17 14:13:52 +02:00
parent b057b734aa
commit 5f31ebb697
No known key found for this signature in database
GPG key ID: 8AD7DF7855A8FF4A

View file

@ -94,7 +94,8 @@ endfunction
function! IdrisReload(q)
w
let tc = system("idris2 --find-ipkg " . shellescape(expand('%:p')) . " --client ''")
let file = expand('%:p')
let tc = system("idris2 --find-ipkg " . shellescape(file) . " --client ''")
if (! (tc is ""))
call IWrite(tc)
else