From b0ccc0784e7c215223d1b3c897ed61adc85ba8e2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 28 Oct 2020 12:48:19 +0200 Subject: [PATCH] repeat: add a workaround for an -autofree bug --- cmd/tools/repeat.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/repeat.v b/cmd/tools/repeat.v index 844f3c57c7..004f134dc0 100644 --- a/cmd/tools/repeat.v +++ b/cmd/tools/repeat.v @@ -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('') }