diff --git a/cmd/send.go b/cmd/send.go index 2de7c1c..623fdcb 100644 --- a/cmd/send.go +++ b/cmd/send.go @@ -31,6 +31,11 @@ func (c *SendCmd) Run() error { sendCmd := strings.Join(c.fs.Args(), " ") switch c.allClients { + case false: + // TODO: need to trigger "session not set" error + if err := kak.Send(c.kakContext, sendCmd); err != nil { + return err + } case true: sessions, err := kak.Sessions() if err != nil { @@ -45,11 +50,6 @@ func (c *SendCmd) Run() error { } } } - case false: - // TODO: need to trigger "session not set" error - if err := kak.Send(c.kakContext, sendCmd); err != nil { - return err - } } return nil