The open source coding agent.
TypeScript
fix: pasting issue (#1182)
Aiden Clinecef5c2958347
diff --git a/packages/tui/internal/components/chat/messages.go b/packages/tui/internal/components/chat/messages.goindex 7d6a1ff3a8b..c44de888ea4 100644--- a/packages/tui/internal/components/chat/messages.go+++ b/packages/tui/internal/components/chat/messages.go@@ -60,6 +60,10 @@ func (s selection) selecting() bool {return s.startX >= 0 && s.startY >= 0}+func (s selection) hasCompleteSelection() bool {+ return s.startX >= 0 && s.startY >= 0 && s.endX >= 0 && s.endY >= 0+}+func (s selection) coords(offset int) selection {// selecting backwardsif s.startY > s.endY && s.endY >= 0 {@@ -127,7 +131,7 @@ func (m *messagesComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {}case tea.MouseReleaseMsg:- if m.selection.selecting() {+ if m.selection.hasCompleteSelection() {m.selection = selection{startX: -1,startY: -1,