mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Make range selections created with the mouse non-sticky
I prefer this because I almost never use sticky range selections. Also, this fixes the issue that just clicking a line in a diff (without dragging) already creates a range selection. It still does, technically, but it's no longer a problem because a non-sticky one-line range selection behaves the same as a non-range selection.
This commit is contained in:
@ -274,7 +274,7 @@ func (self *PatchExplorerController) HandleMouseDown() error {
|
||||
}
|
||||
|
||||
func (self *PatchExplorerController) HandleMouseDrag() error {
|
||||
self.context.GetState().SelectLine(self.context.GetViewTrait().SelectedLineIdx())
|
||||
self.context.GetState().DragSelectLine(self.context.GetViewTrait().SelectedLineIdx())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user