MCPcopy
hub / github.com/micro-editor/micro / invalidateSearchMatches

Method invalidateSearchMatches

internal/buffer/line_array.go:439–445  ·  view source on GitHub ↗

invalidateSearchMatches marks search matches for the given line as outdated. It is called when the line is modified.

(lineN int)

Source from the content-addressed store, hash-verified

437// invalidateSearchMatches marks search matches for the given line as outdated.
438// It is called when the line is modified.
439func (la *LineArray) invalidateSearchMatches(lineN int) {
440 if la.lines[lineN].search != nil {
441 for _, s := range la.lines[lineN].search {
442 s.done = false
443 }
444 }
445}

Callers 1

MarkModifiedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected