terminal/command: bugfix: wrong check in sourceCommand

Fixes #312
This commit is contained in:
aarzilli
2015-12-15 15:16:17 +01:00
parent ad5097a8dc
commit a0ba48184e

View File

@ -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>")
}