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

Method ClearMatches

internal/buffer/buffer.go:1014–1019  ·  view source on GitHub ↗

ClearMatches clears all of the syntax highlighting for the buffer

()

Source from the content-addressed store, hash-verified

1012
1013// ClearMatches clears all of the syntax highlighting for the buffer
1014func (b *Buffer) ClearMatches() {
1015 for i := range b.lines {
1016 b.SetMatch(i, nil)
1017 b.SetState(i, nil)
1018 }
1019}
1020
1021// IndentString returns this buffer's indent method (a tabstop or n spaces
1022// depending on the settings)

Callers 2

DoSetOptionNativeMethod · 0.95
UpdateRulesMethod · 0.95

Calls 2

SetMatchMethod · 0.65
SetStateMethod · 0.65

Tested by

no test coverage detected