From cac6a6451e30e150e79833ebd3fb0541ca0a5a37 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 10 Jul 2025 10:09:56 -0400 Subject: [PATCH] fix(tui): editor: ensure the textarea scrolls when inserting newlines Fixes: 50e759685d05 (feat(tui): support adding newlines in chat editor) --- internal/tui/components/chat/editor/editor.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 3042b84c97a528246d4edc11c2a9ead89eb0aa38..451e609fcafafdde6ae4923179cddf79b1c12a1f 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -250,7 +250,6 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } if key.Matches(msg, m.keyMap.Newline) { m.textarea.InsertRune('\n') - return m, nil } // Handle Enter key if m.textarea.Focused() && key.Matches(msg, m.keyMap.SendMessage) {