fix(tui): editor: ensure the textarea scrolls when inserting newlines
Fixes: 50e759685d05 (feat(tui): support adding newlines in chat editor)
commitcac6a6451e30e150e79833ebd3fb0541ca0a5a37
authorAyman Bagabas <ayman.bagabas@gmail.com>
dateThu 10 Jul 2025, 10:09 (1 year ago)
parent46fd08c
internal/tui/components/chat/editor/editor.go−1
@@ -250,7 +250,6 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
250250 }
251251 if key.Matches(msg, m.keyMap.Newline) {
252252 m.textarea.InsertRune('\n')
253− return m, nil
254253 }
255254 // Handle Enter key
256255 if m.textarea.Focused() && key.Matches(msg, m.keyMap.SendMessage) {