@@ -1479,6 +1479,9 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
14791479 case key.Matches(msg, m.keyMap.Editor.Newline):
14801480 m.textarea.InsertRune('\n')
14811481 m.closeCompletions()
1482+ ta, cmd := m.textarea.Update(msg)
1483+ m.textarea = ta
1484+ cmds = append(cmds, cmd)
14821485 default:
14831486 if handleGlobalKeys(msg) {
14841487 // Handle global keys first before passing to textarea.