fix(paste): normalize windows newlines
commitbf5dd26e59741737bd359739249a67a304e4f1ef
authorKieran Klukas <kieran@dunkirk.sh>
dateMon 11 May 2026, 17:00 (5 months ago)
parenta1a4806
internal/ui/model/ui.go+3
@@ -3462,6 +3462,9 @@ func (m *UI) newSession() tea.Cmd {
34623462
34633463// handlePasteMsg handles a paste message.
34643464func (m *UI) handlePasteMsg(msg tea.PasteMsg) tea.Cmd {
3465+ // Normalize \r\n before the textarea sanitizer sees it.
3466+ msg.Content = strings.ReplaceAll(msg.Content, "\r\n", "\n")
3467+
34653468 if m.dialog.HasDialogs() {
34663469 return m.handleDialogMsg(msg)
34673470 }