mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
Fix the bug described in the previous commit
This commit is contained in:
@@ -608,6 +608,7 @@ func (self *LocalCommitsController) restoreSelectionRangeAndMode(selectionRangeA
|
|||||||
})
|
})
|
||||||
if ok1 && ok2 {
|
if ok1 && ok2 {
|
||||||
self.context().SetSelectionRangeAndMode(newSelectedIdx, newRangeStartIdx, selectionRangeAndMode.mode)
|
self.context().SetSelectionRangeAndMode(newSelectedIdx, newRangeStartIdx, selectionRangeAndMode.mode)
|
||||||
|
self.context().HandleFocus(types.OnFocusOpts{})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -49,10 +49,7 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("CI commit 01"),
|
Contains("CI commit 01"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
/* EXPECTED:
|
|
||||||
t.Views().Main().Content(Contains("commit 02"))
|
t.Views().Main().Content(Contains("commit 02"))
|
||||||
ACTUAL: */
|
|
||||||
t.Views().Main().Content(Contains("commit 03"))
|
|
||||||
}).
|
}).
|
||||||
NavigateToLine(Contains("commit 06")).
|
NavigateToLine(Contains("commit 06")).
|
||||||
Press(keys.Universal.Remove)
|
Press(keys.Universal.Remove)
|
||||||
|
Reference in New Issue
Block a user