summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-02 14:03:36 -0500
committercitrons <citrons@mondecitronne.com>2025-06-02 14:03:36 -0500
commitfe33ae88d3610eceeb79d5ecb2729aa1a6e81828 (patch)
tree323cfed94898ce9d225809c9a89da1d7f1227521 /client/command.go
parent8c4e3c81890f26f056eff7b3344f23fed4c1d970 (diff)
put default window functionality in concrete type
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/command.go b/client/command.go
index 253cf59..2c146e9 100644
--- a/client/command.go
+++ b/client/command.go
@@ -90,7 +90,7 @@ func (a *application) doCommand(command string, args []string, text string) {
switch win.(type) {
case *channelWindow:
win.(*channelWindow).userList(func(msg userListMsg) {
- a.cmdWindow.buf.Add(msg)
+ a.cmdWindow.Buffer().Add(msg)
})
}
case "create":
@@ -122,7 +122,7 @@ func (a *application) doCommand(command string, args []string, text string) {
if !ok {
a.cmdWindow.err("unknown command: /" + cmd)
} else {
- a.cmdWindow.buf.Add(hm)
+ a.cmdWindow.Buffer().Add(hm)
}
case "quit":
a.quit = true