提交 28a0e5bd 编写于 作者: Z Zhou Tao 提交者: Derek Parker

terminal: trim space in interactive console (#770)

When running interactive command in gdb, it will remove beginning space,
so do the same for dlv, which will be more convient for user
上级 ab7367ed
......@@ -128,7 +128,7 @@ func (t *Term) Run() (int, error) {
return 1, fmt.Errorf("Prompt for input failed.\n")
}
cmdstr, args := parseCommand(cmdstr)
cmdstr, args := parseCommand(strings.TrimSpace(cmdstr))
if err := t.cmds.Call(cmdstr, args, t); err != nil {
if _, ok := err.(ExitRequestError); ok {
return t.handleExit()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册