repeat: add a workaround for an -autofree bug

pull/6693/head
Delyan Angelov 2020-10-28 12:48:19 +02:00
parent b7121786a5
commit b0ccc0784e
1 changed files with 2 additions and 1 deletions

View File

@ -116,10 +116,11 @@ fn (mut context Context) parse_options() {
if context.verbose {
scripting.set_verbose(true)
}
context.commands = fp.finalize() or {
x := fp.finalize() or {
eprintln('Error: ' + err)
exit(1)
}
context.commands = x
context.results = []CmdResult{len: context.commands.len, init: CmdResult{}}
context.cline = '\r' + term.h_divider('')
}