install.fairie/dotfiles/.vim/plugged/fzf/src/result_others.go
Git E2E Dev Test Username 8c6fca48ea git subrepo clone https://github.com/junegunn/fzf.git ./dotfiles/.vim/plugged/fzf
subrepo:
  subdir:   "dotfiles/.vim/plugged/fzf"
  merged:   "dad26d81d"
upstream:
  origin:   "https://github.com/junegunn/fzf.git"
  branch:   "master"
  commit:   "dad26d81d"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:14 -04:00

16 lines
338 B
Go

//go:build !386 && !amd64
package fzf
func compareRanks(irank Result, jrank Result, tac bool) bool {
for idx := 3; idx >= 0; idx-- {
left := irank.points[idx]
right := jrank.points[idx]
if left < right {
return true
} else if left > right {
return false
}
}
return (irank.item.Index() <= jrank.item.Index()) != tac
}