forwardToTextarea passes msg to the textarea and refreshes the popover to match. The "let the textarea handle it" fallback shared by handleKey, handleTab, and Alt+Enter.
(msg tea.Msg)
| 91 | // match. The "let the textarea handle it" fallback shared by handleKey, |
| 92 | // handleTab, and Alt+Enter. |
| 93 | func (m Model) forwardToTextarea(msg tea.Msg) (tea.Model, tea.Cmd) { |
| 94 | var cmd tea.Cmd |
| 95 | m.ta, cmd = m.ta.Update(msg) |
| 96 | m.refreshSuggest() |
| 97 | return m, cmd |
| 98 | } |
| 99 | |
| 100 | // setPromptText overwrites the textarea, parks the cursor at the end, and |
| 101 | // refreshes the popover. Centralises the SetValue + CursorEnd + refreshSuggest |
no test coverage detected