提交 a0ba4818 编写于 作者: A aarzilli

terminal/command: bugfix: wrong check in sourceCommand

Fixes #312
上级 ad5097a8
......@@ -803,7 +803,7 @@ func listCommand(t *Term, args string) error {
}
func (cmds *Commands) sourceCommand(t *Term, args string) error {
if len(args) != 1 {
if len(args) == 0 {
return fmt.Errorf("wrong number of arguments: source <filename>")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册