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

@@ -68,7 +68,7 @@ func buildPattern(fuzzy bool, fuzzyAlgo algo.Algo, extended bool, caseMode Case,
withPos bool, cacheable bool, nth []Range, delimiter Delimiter, runes []rune) *Pattern {
return BuildPattern(NewChunkCache(), make(map[string]*Pattern),
fuzzy, fuzzyAlgo, extended, caseMode, normalize, forward,
withPos, cacheable, nth, delimiter, 0, runes)
withPos, cacheable, nth, delimiter, revision{}, runes)
}
func TestExact(t *testing.T) {