1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Switch to Files panel after popping a stash

This commit is contained in:
Stefan Haller
2024-09-03 19:09:50 +02:00
parent 4c6c915a77
commit f5b8619ded
3 changed files with 4 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err
if err != nil { if err != nil {
return err return err
} }
self.c.Context().Push(self.c.Contexts().Files)
return nil return nil
} }
@@ -137,6 +138,7 @@ func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error
if err != nil { if err != nil {
return err return err
} }
self.c.Context().Push(self.c.Contexts().Files)
return nil return nil
} }

View File

@@ -36,6 +36,7 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{
) )
t.Views().Files(). t.Views().Files().
IsFocused().
Lines( Lines(
Contains("file"), Contains("file"),
) )

View File

@@ -34,6 +34,7 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{
IsEmpty() IsEmpty()
t.Views().Files(). t.Views().Files().
IsFocused().
Lines( Lines(
Contains("file"), Contains("file"),
) )