From 62e0a2824a9ed2783fee54f53dd258a2bc3ed795 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 6 Feb 2025 19:56:40 +0900 Subject: Fix nth highlighting Fix #4222 --- src/pattern.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pattern.go') diff --git a/src/pattern.go b/src/pattern.go index dd9c5292..29149fe7 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -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 { -- cgit v1.2.3