summaryrefslogtreecommitdiff
path: root/src/pattern.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-06 19:56:40 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-06 19:57:39 +0900
commit62e0a2824a9ed2783fee54f53dd258a2bc3ed795 (patch)
tree83c14a09b9f24ec138835ac9536c0aada10e4505 /src/pattern.go
parentbbe1721a1883426f639c1efe6afef1d3e6c25181 (diff)
downloadfzf-62e0a2824a9ed2783fee54f53dd258a2bc3ed795.tar.gz
Fix nth highlighting
Fix #4222
Diffstat (limited to 'src/pattern.go')
-rw-r--r--src/pattern.go4
1 files changed, 2 insertions, 2 deletions
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 {