MCPcopy Create free account
hub / github.com/cogentcore/core / setWord

Method setWord

texteditor/basespell.go:82–88  ·  view source on GitHub ↗

setWord sets the word to spell and other associated info

(word string, sugs []string, srcLn, srcCh int)

Source from the content-addressed store, hash-verified

80
81// setWord sets the word to spell and other associated info
82func (sp *spellCheck) setWord(word string, sugs []string, srcLn, srcCh int) *spellCheck {
83 sp.word = word
84 sp.suggest = sugs
85 sp.srcLn = srcLn
86 sp.srcCh = srcCh
87 return sp
88}
89
90// show is the main call for listing spelling corrections.
91// Calls ShowNow which builds the correction popup menu

Callers 2

spellCheckMethod · 0.80
offerCorrectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected