invalidateSearchMatches marks search matches for the given line as outdated. It is called when the line is modified.
(lineN int)
| 437 | // invalidateSearchMatches marks search matches for the given line as outdated. |
| 438 | // It is called when the line is modified. |
| 439 | func (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 | } |