command.js: hitting return key with empty string wont error out anymore

This commit is contained in:
minjaesong
2020-11-24 21:28:08 +09:00
parent 7b6f3cbc43
commit cd518fb065

View File

@@ -268,6 +268,7 @@ shell.execute = function(line) {
if (0 == line.size) return;
let tokens = shell.parse(line);
let cmd = tokens[0];
if (cmd === undefined || cmd === '') return 0;
// handle Ctrl-C
if (con.hitterminate()) return 1;