on main help sign in
fix(tui): editor: make sure we update the textarea after closing the editor
3ec5d01Ayman Bagabas
internal/tui/components/chat/editor/editor.go−1
@@ -187,7 +187,6 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
187 }
187 }
188 case openEditorMsg:
188 case openEditorMsg:
189 m.textarea.SetValue(msg.Text)
189 m.textarea.SetValue(msg.Text)
190− return m, nil
191 case tea.KeyPressMsg:
190 case tea.KeyPressMsg:
192 switch {
191 switch {
193 // Completions
192 // Completions