summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/command.go b/client/command.go
index bb7a491..cb6ad10 100644
--- a/client/command.go
+++ b/client/command.go
@@ -139,7 +139,7 @@ func (a *application) doCommand(command string, args []string, text string) {
return
case "list":
if !argN(0) {
- break
+ return
}
win := a.windowCache.Get(a.currentWindow)
switch win.(type) {
@@ -151,7 +151,7 @@ func (a *application) doCommand(command string, args []string, text string) {
return
case "status":
if !a.authenticated {
- break
+ return
}
cb := func(response proto.Command) {
if response.Kind == "fail" && len(response.Args) > 0 {