Skip to content

Commit 59af407

Browse files
committed
Fix the bug described in the previous commit
1 parent f20b7ea commit 59af407

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pkg/gui/controllers/local_commits_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ func (self *LocalCommitsController) restoreSelectionRangeAndMode(selectionRangeA
608608
})
609609
if ok1 && ok2 {
610610
self.context().SetSelectionRangeAndMode(newSelectedIdx, newRangeStartIdx, selectionRangeAndMode.mode)
611+
self.context().HandleFocus(types.OnFocusOpts{})
611612
}
612613
}
613614

pkg/integration/tests/interactive_rebase/drop_todo_commit_with_update_ref.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
4949
Contains("CI commit 01"),
5050
).
5151
Tap(func() {
52-
/* EXPECTED:
5352
t.Views().Main().Content(Contains("commit 02"))
54-
ACTUAL: */
55-
t.Views().Main().Content(Contains("commit 03"))
5653
}).
5754
NavigateToLine(Contains("commit 06")).
5855
Press(keys.Universal.Remove)

0 commit comments

Comments
 (0)