1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Rename MinMax to SortRange

This commit is contained in:
Stefan Haller
2024-01-19 14:52:22 +01:00
parent cce29209be
commit f226a277bf
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ func (self *ListCursor) AreMultipleItemsSelected() bool {
func (self *ListCursor) GetSelectionRange() (int, int) {
if self.IsSelectingRange() {
return utils.MinMax(self.selectedIdx, self.rangeStartIdx)
return utils.SortRange(self.selectedIdx, self.rangeStartIdx)
}
return self.selectedIdx, self.selectedIdx

View File

@ -50,7 +50,7 @@ func Max(x, y int) int {
return y
}
func MinMax(x int, y int) (int, int) {
func SortRange(x int, y int) (int, int) {
if x < y {
return x, y
}