Merge pull request #123 from charmbracelet/editor-newline-scroll

Kujtim Hoxha created

fix(tui): editor: ensure the textarea scrolls when inserting newlines

Change summary

internal/tui/components/chat/editor/editor.go | 1 -
1 file changed, 1 deletion(-)

Detailed changes

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) {