mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Fix the bug described in the previous commit
This commit is contained in:
parent
f20b7ea593
commit
59af407eb1
|
|
@ -608,6 +608,7 @@ func (self *LocalCommitsController) restoreSelectionRangeAndMode(selectionRangeA
|
|||
})
|
||||
if ok1 && ok2 {
|
||||
self.context().SetSelectionRangeAndMode(newSelectedIdx, newRangeStartIdx, selectionRangeAndMode.mode)
|
||||
self.context().HandleFocus(types.OnFocusOpts{})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,10 +49,7 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
Contains("CI commit 01"),
|
||||
).
|
||||
Tap(func() {
|
||||
/* EXPECTED:
|
||||
t.Views().Main().Content(Contains("commit 02"))
|
||||
ACTUAL: */
|
||||
t.Views().Main().Content(Contains("commit 03"))
|
||||
}).
|
||||
NavigateToLine(Contains("commit 06")).
|
||||
Press(keys.Universal.Remove)
|
||||
|
|
|
|||
Loading…
Reference in a new issue