[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
1 changed files with 2 additions and 1 deletions

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