mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-07 01:09:45 +02:00
Escape out of hunk mode only if it was turned on by the user
If hunk mode is on by default because of the config, then it's annoying for escape to go to line mode.
This commit is contained in:
@ -170,7 +170,7 @@ func (self *PatchBuildingController) Escape() error {
|
||||
context := self.c.Contexts().CustomPatchBuilder
|
||||
state := context.GetState()
|
||||
|
||||
if state.SelectingRange() || state.SelectingHunk() {
|
||||
if state.SelectingRange() || state.SelectingHunkEnabledByUser() {
|
||||
state.SetLineSelectMode()
|
||||
self.c.PostRefreshUpdate(context)
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user