peco.peco/line/matched.go
2016-12-14 11:00:22 +09:00

13 lines
254 B
Go

package line
// NewMatched creates a new Matched
func NewMatched(rl Line, matches [][]int) *Matched {
return &Matched{rl, matches}
}
// Indices returns the indices in the buffer that matched
func (ml Matched) Indices() [][]int {
return ml.indices
}