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:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user