ignore lines without commands

This commit is contained in:
Luna 2020-06-02 16:16:43 -03:00
parent 0240b10a3c
commit c7eb70a06f

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