From b50d5799ac5642af2ce58c72922685e319768caf Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 22 Jan 2026 12:29:17 -0500 Subject: [PATCH] fix(ui): only copy chat highlight when we have highlighted content --- internal/ui/model/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/model/ui.go b/internal/ui/model/ui.go index fa1ffed72bd02a38a00b187cbf749cc2c74af2b1..0f59e10bee7a6c7ed3a12ef2edae8cf74f5de5d6 100644 --- a/internal/ui/model/ui.go +++ b/internal/ui/model/ui.go @@ -549,7 +549,7 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // Adjust for chat area position x -= m.layout.main.Min.X y -= m.layout.main.Min.Y - if m.chat.HandleMouseUp(x, y) { + if m.chat.HandleMouseUp(x, y) && m.chat.HasHighlight() { cmds = append(cmds, tea.Tick(doubleClickThreshold, func(t time.Time) tea.Msg { if time.Since(m.lastClickTime) >= doubleClickThreshold { return copyChatHighlightMsg{}