diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go index 3168b7ff3..5b76fd700 100644 --- a/pkg/gui/controllers/local_commits_controller.go +++ b/pkg/gui/controllers/local_commits_controller.go @@ -869,7 +869,7 @@ func (self *LocalCommitsController) revert(commits []*models.Commit, start, end return err } self.context().MoveSelection(len(commits)) - self.context().FocusLine() + self.context().HandleFocus(types.OnFocusOpts{}) if mustStash { if err := self.c.Git().Stash.Pop(0); err != nil { diff --git a/pkg/integration/tests/commit/revert.go b/pkg/integration/tests/commit/revert.go index 8e1bb125c..e9f3711f2 100644 --- a/pkg/integration/tests/commit/revert.go +++ b/pkg/integration/tests/commit/revert.go @@ -33,10 +33,7 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{ Contains("first commit").IsSelected(), ). Tap(func() { - /* EXPECTED: t.Views().Main().Content(Contains("+myfile content")) - ACTUAL: */ - t.Views().Main().Content(Contains("-myfile content")) }). SelectPreviousItem()