ignore lines without commands
This commit is contained in:
parent
0240b10a3c
commit
c7eb70a06f
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
|
||||||
std.debug.warn("repl: error while parsing: {}\n", .{err});
|
std.debug.warn("repl: error while parsing: {}\n", .{err});
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// no command? ignore!
|
||||||
|
if (cmds_parsed.items.len == 0) continue;
|
||||||
|
|
||||||
current = cmds_parsed.items[0].*;
|
current = cmds_parsed.items[0].*;
|
||||||
|
|
||||||
// by cloning the parent runner, we can iteratively write
|
// by cloning the parent runner, we can iteratively write
|
||||||
|
|
Loading…
Reference in a new issue