@@ -261,8 +261,7 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
261261 value := m.textarea.Value()
262262 if len(value) > 0 && value[len(value)-1] == '\\' {
263263 // If the last character is a backslash, remove it and add a newline
264− m.textarea.SetValue(value[:len(value)-1] + "\n")
265− return m, nil
264+ m.textarea.SetValue(value[:len(value)-1])
266265 } else {
267266 // Otherwise, send the message
268267 return m, m.send()