setPromptText overwrites the textarea, parks the cursor at the end, and refreshes the popover. Centralises the SetValue + CursorEnd + refreshSuggest dance shared by Tab completion and the Enter/Esc arg-popover transitions.
(s string)
| 101 | // refreshes the popover. Centralises the SetValue + CursorEnd + refreshSuggest |
| 102 | // dance shared by Tab completion and the Enter/Esc arg-popover transitions. |
| 103 | func (m *Model) setPromptText(s string) { |
| 104 | m.ta.SetValue(s) |
| 105 | m.ta.CursorEnd() |
| 106 | m.refreshSuggest() |
| 107 | } |
| 108 | |
| 109 | // handleCtrlC implements Ctrl+C's three-level precedence: in-flight cancel > |
| 110 | // popover close > quit arming. Each level fully handles the key, no fallthrough. |
no test coverage detected