mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-08 22:36:49 +02:00
Switch to Files panel after popping a stash
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
)
|
||||
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
Lines(
|
||||
Contains("file"),
|
||||
)
|
||||
|
@ -34,6 +34,7 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
IsEmpty()
|
||||
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
Lines(
|
||||
Contains("file"),
|
||||
)
|
||||
|
Reference in New Issue
Block a user