From 274290cc5b1e899549b8f2396ec2916e19742ba6 Mon Sep 17 00:00:00 2001 From: Nathan Du Date: Tue, 21 Sep 2021 21:35:55 +0800 Subject: [PATCH] default to next when no command is given MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当你学会命令行版如何操作以后,n 就绝对会是你用到最多的指令(除非开 at) 为了减少不必要的操作,把 n 设成了默认操作 不过不知道会不会让本来开 at 的玩家选择按住回车呢(笑 --- repl/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repl/app.js b/repl/app.js index a55776c..8388a8e 100644 --- a/repl/app.js +++ b/repl/app.js @@ -123,7 +123,8 @@ class App { case 'n': case 'next': - case '/next': return this.next(true); + case '/next': + case '': return this.next(true); case 'a': case 'alloc':