on main help sign in
Merge pull request #123 from charmbracelet/editor-newline-scroll
5affd9aKujtim Hoxha
internal/tui/components/chat/editor/editor.go−1
@@ -250,7 +250,6 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
250 }
250 }
251 if key.Matches(msg, m.keyMap.Newline) {
251 if key.Matches(msg, m.keyMap.Newline) {
252 m.textarea.InsertRune('\n')
252 m.textarea.InsertRune('\n')
253− return m, nil
254 }
253 }
255 // Handle Enter key
254 // Handle Enter key
256 if m.textarea.Focused() && key.Matches(msg, m.keyMap.SendMessage) {
255 if m.textarea.Focused() && key.Matches(msg, m.keyMap.SendMessage) {