mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
13 lines
254 B
Go
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
|
|
}
|
|
|