mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +09:00
command.js: hitting return key with empty string wont error out anymore
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user