mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Fix crash when dragging from below the end of the diff upwards and then staging the range
We need to clamp the range start index of a selection range in the same way as we clamp the selection index.
This commit is contained in:
parent
a3ae1c8e4d
commit
825e5c23c1
|
|
@ -188,7 +188,7 @@ func (s *State) selectLineWithoutRangeCheck(newSelectedLineIdx int) {
|
|||
}
|
||||
|
||||
func (s *State) SelectNewLineForRange(newSelectedLineIdx int) {
|
||||
s.rangeStartLineIdx = newSelectedLineIdx
|
||||
s.rangeStartLineIdx = s.clampLineIdx(newSelectedLineIdx)
|
||||
|
||||
s.selectMode = RANGE
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue