mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 22:54:03 +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;
|
if (0 == line.size) return;
|
||||||
let tokens = shell.parse(line);
|
let tokens = shell.parse(line);
|
||||||
let cmd = tokens[0];
|
let cmd = tokens[0];
|
||||||
|
if (cmd === undefined || cmd === '') return 0;
|
||||||
|
|
||||||
// handle Ctrl-C
|
// handle Ctrl-C
|
||||||
if (con.hitterminate()) return 1;
|
if (con.hitterminate()) return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user