Merge pull request #123 from charmbracelet/editor-newline-scroll
fix(tui): editor: ensure the textarea scrolls when inserting newlines
commit5affd9a7f1e986fc6eb7ec6c4d145b8288664fb3
authorKujtim Hoxha <kujtimii.h@gmail.com>
dateThu 10 Jul 2025, 16:16 (1 year ago)
parent46fd08ccac6a64
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) {