mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Fix pressing shift-down after clicking in diff view
When clicking in a single-file diff view to enter staging (or custom patch
editing, when coming from the commit files panel), and then pressing shift-down
or shift-up to select a range, it would move the selected line rather than
creating a range. Only on the next press would it start to select a range from
there.
This is very similar to the fix we made for pressing escape in 0e4d266a52
.
This commit is contained in:
parent
7655f6864e
commit
a58770ee1b
2 changed files with 3 additions and 11 deletions
|
@ -94,7 +94,7 @@ func (s *State) ToggleStickySelectRange() {
|
|||
}
|
||||
|
||||
func (s *State) ToggleSelectRange(sticky bool) {
|
||||
if s.selectMode == RANGE {
|
||||
if s.SelectingRange() {
|
||||
s.selectMode = LINE
|
||||
} else {
|
||||
s.selectMode = RANGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue