m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 23:03:47 -05:00

Make click-header export $FZF_CLICK_HEADER_{NTH,WORD}

This commit is contained in:
Junegunn Choi
2025-01-26 15:04:30 +09:00
parent c13228f346
commit d6584543e9
6 changed files with 157 additions and 51 deletions

View File

@@ -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 {