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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -36,6 +36,7 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
)
|
)
|
||||||
|
|
||||||
t.Views().Files().
|
t.Views().Files().
|
||||||
|
IsFocused().
|
||||||
Lines(
|
Lines(
|
||||||
Contains("file"),
|
Contains("file"),
|
||||||
)
|
)
|
||||||
|
@@ -34,6 +34,7 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
IsEmpty()
|
IsEmpty()
|
||||||
|
|
||||||
t.Views().Files().
|
t.Views().Files().
|
||||||
|
IsFocused().
|
||||||
Lines(
|
Lines(
|
||||||
Contains("file"),
|
Contains("file"),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user