Fix nth highlighting

Fix #4222
This commit is contained in:
Junegunn Choi
2025-02-06 19:56:40 +09:00
parent bbe1721a18
commit 62e0a2824a
5 changed files with 8 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ type Pattern struct {
cacheKey string
delimiter Delimiter
nth []Range
revision int
revision revision
procFun map[termType]algo.Algo
cache *ChunkCache
}
@@ -73,7 +73,7 @@ func init() {
// BuildPattern builds Pattern object from the given arguments
func BuildPattern(cache *ChunkCache, patternCache map[string]*Pattern, fuzzy bool, fuzzyAlgo algo.Algo, extended bool, caseMode Case, normalize bool, forward bool,
withPos bool, cacheable bool, nth []Range, delimiter Delimiter, revision int, runes []rune) *Pattern {
withPos bool, cacheable bool, nth []Range, delimiter Delimiter, revision revision, runes []rune) *Pattern {
var asString string
if extended {