else if → elseif

This commit is contained in:
rhiannon morris 2022-01-03 15:09:55 +01:00
parent 1e64a7bd2c
commit 6b8e2c8d3e
1 changed files with 2 additions and 4 deletions

View File

@ -99,10 +99,8 @@ function! IdrisReload(q)
let tc = system("idris2 --no-color --find-ipkg " . shellescape(file) . " --client ''") let tc = system("idris2 --no-color --find-ipkg " . shellescape(file) . " --client ''")
if (! (tc is "")) if (! (tc is ""))
call IWrite(tc) call IWrite(tc)
else elseif (a:q==0)
if (a:q==0) call IWrite("Successfully reloaded " . file)
call IWrite("Successfully reloaded " . file)
endif
endif endif
return tc return tc
endfunction endfunction