refactor(chat): inline clipboard callbacks
This commit is contained in:
parent
8d8e855777
commit
c1af115e27
1 changed files with 2 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue