on main help sign in
chore: fix newline with \
commite005d0af9d64444314c120ac5b39b4167c9cd0c6 authorKujtim Hoxha <kujtimii.h@gmail.com> dateThu 10 Jul 2025, 16:27 (1 year ago) parent520e1ac
1 file changed+1−2
internal/tui/components/chat/editor/editor.go+1−2
internal/tui/components/chat/editor/editor.go+1−2
@@ -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()