提交 73a5c7c2 编写于 作者: D Derek Parker

Fix: replay last command on empty string

上级 51a9aa71
......@@ -79,12 +79,8 @@ func (t *Term) Run() (error, int) {
err, status = fmt.Errorf("Prompt for input failed.\n"), 1
break
}
if len(cmdstr) == 0 {
continue
}
cmdstr, args := parseCommand(cmdstr)
if cmdstr == "exit" {
err, status = handleExit(t.client, t)
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册