From c1af115e271c9c6f68156d13e5d23baee9116b9f Mon Sep 17 00:00:00 2001 From: ayn2op Date: Wed, 8 Jul 2026 20:24:38 -0400 Subject: [PATCH] refactor(chat): inline clipboard callbacks --- internal/ui/chat/composer.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/ui/chat/composer.go b/internal/ui/chat/composer.go index b4a8291..e90eaf5 100644 --- a/internal/ui/chat/composer.go +++ b/internal/ui/chat/composer.go @@ -78,12 +78,8 @@ func newComposer(cfg *config.Config, chat *Model) *composer { c. SetPlaceholder(tview.NewLine(tview.NewSegment("Select a channel to start chatting", tcell.StyleDefault.Dim(true)))). SetClipboard( - func(s string) { - _ = clipboard.Write(clipboard.FmtText, []byte(s)) - }, - func() string { - return string(clipboard.Read(clipboard.FmtText)) - }, + func(s string) { _ = clipboard.Write(clipboard.FmtText, []byte(s)) }, + func() string { return string(clipboard.Read(clipboard.FmtText)) }, ). SetDisabled(true)