SetValue installs a plain-text value, dropping any chip state. Used by the slash popover's Tab-completion path, where no chip can be injected.
(s string)
| 531 | // SetValue installs a plain-text value, dropping any chip state. Used by the |
| 532 | // slash popover's Tab-completion path, where no chip can be injected. |
| 533 | func (p *promptInput) SetValue(s string) { |
| 534 | p.ta.SetValue(s) |
| 535 | p.store = map[int]chipContent{} |
| 536 | p.spans = nil |
| 537 | } |
| 538 | |
| 539 | func (p *promptInput) SetWidth(w int) { p.ta.SetWidth(w) } |
| 540 | func (p *promptInput) SetHeight(h int) { p.ta.SetHeight(h) } |
no outgoing calls