MCPcopy Index your code
hub / github.com/codehamr/codehamr / SetValue

Method SetValue

internal/tui/prompt.go:533–537  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
533func (p *promptInput) SetValue(s string) {
534 p.ta.SetValue(s)
535 p.store = map[int]chipContent{}
536 p.spans = nil
537}
538
539func (p *promptInput) SetWidth(w int) { p.ta.SetWidth(w) }
540func (p *promptInput) SetHeight(h int) { p.ta.SetHeight(h) }

Calls

no outgoing calls