summaryrefslogtreecommitdiff
path: root/src/tokenizer.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-26 15:04:30 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-26 15:37:42 +0900
commitd6584543e993ae74615057cb02c4c831350b75bd (patch)
tree78b7a27f12150a4a20f67e35ab97929a4058fd2a /src/tokenizer.go
parentc13228f34623b856bd22a963959f4655cbfac947 (diff)
downloadfzf-d6584543e993ae74615057cb02c4c831350b75bd.tar.gz
Make click-header export $FZF_CLICK_HEADER_{NTH,WORD}
Diffstat (limited to 'src/tokenizer.go')
-rw-r--r--src/tokenizer.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tokenizer.go b/src/tokenizer.go
index e5a8e977..f5d1483b 100644
--- a/src/tokenizer.go
+++ b/src/tokenizer.go
@@ -22,6 +22,18 @@ func (r Range) IsFull() bool {
return r.begin == rangeEllipsis && r.end == rangeEllipsis
}
+func compareRanges(r1 []Range, r2 []Range) bool {
+ if len(r1) != len(r2) {
+ return false
+ }
+ for idx := range r1 {
+ if r1[idx] != r2[idx] {
+ return false
+ }
+ }
+ return true
+}
+
func RangesToString(ranges []Range) string {
strs := []string{}
for _, r := range ranges {