summaryrefslogtreecommitdiff
path: root/src/tokenizer.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-16 10:05:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-16 10:06:11 +0900
commit13135108906fce00dab5a403bf308e19382e630e (patch)
tree4d31ed91c85e747f5454b20ef7f0970c1bd0c7db /src/tokenizer.go
parentb712f2bb6a5c1eed5661072604e308951ef655f2 (diff)
downloadfzf-13135108906fce00dab5a403bf308e19382e630e.tar.gz
Do not apply nth style when the whole range is covered
Diffstat (limited to 'src/tokenizer.go')
-rw-r--r--src/tokenizer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tokenizer.go b/src/tokenizer.go
index fade1d10..e5a8e977 100644
--- a/src/tokenizer.go
+++ b/src/tokenizer.go
@@ -18,6 +18,10 @@ type Range struct {
end int
}
+func (r Range) IsFull() bool {
+ return r.begin == rangeEllipsis && r.end == rangeEllipsis
+}
+
func RangesToString(ranges []Range) string {
strs := []string{}
for _, r := range ranges {