updateEditorCmd forwards a message to the editor and returns its cmd.
(msg tea.Msg)
| 33 | |
| 34 | // updateEditorCmd forwards a message to the editor and returns its cmd. |
| 35 | func (m *appModel) updateEditorCmd(msg tea.Msg) tea.Cmd { |
| 36 | updated, cmd := m.editor.Update(msg) |
| 37 | m.editor = updated.(editor.Editor) |
| 38 | return cmd |
| 39 | } |
| 40 | |
| 41 | // updateDialogCmd forwards a message to the dialog manager and returns its cmd. |
| 42 | func (m *appModel) updateDialogCmd(msg tea.Msg) tea.Cmd { |
no test coverage detected