ignore lines without commands

This commit is contained in:
Luna 2020-06-02 16:16:43 -03:00
parent 0240b10a3c
commit c7eb70a06f
1 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,10 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
std.debug.warn("repl: error while parsing: {}\n", .{err});
continue;
};
// no command? ignore!
if (cmds_parsed.items.len == 0) continue;
current = cmds_parsed.items[0].*;
// by cloning the parent runner, we can iteratively write