diff --git a/pkg/gui/controllers/stash_controller.go b/pkg/gui/controllers/stash_controller.go index 4d1cd7233..808376c53 100644 --- a/pkg/gui/controllers/stash_controller.go +++ b/pkg/gui/controllers/stash_controller.go @@ -111,6 +111,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err if err != nil { return err } + self.c.Context().Push(self.c.Contexts().Files) return nil } @@ -137,6 +138,7 @@ func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error if err != nil { return err } + self.c.Context().Push(self.c.Contexts().Files) return nil } diff --git a/pkg/integration/tests/stash/apply.go b/pkg/integration/tests/stash/apply.go index 379f2fa2f..768ab084d 100644 --- a/pkg/integration/tests/stash/apply.go +++ b/pkg/integration/tests/stash/apply.go @@ -36,6 +36,7 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{ ) t.Views().Files(). + IsFocused(). Lines( Contains("file"), ) diff --git a/pkg/integration/tests/stash/pop.go b/pkg/integration/tests/stash/pop.go index 9eec96c55..c7e640072 100644 --- a/pkg/integration/tests/stash/pop.go +++ b/pkg/integration/tests/stash/pop.go @@ -34,6 +34,7 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{ IsEmpty() t.Views().Files(). + IsFocused(). Lines( Contains("file"), )