mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-25 18:55:28 -06:00
allowing commit files to be viewed in reflog as well
This commit is contained in:
@@ -42,6 +42,12 @@ func (gui *Gui) handleTopLevelReturn(g *gocui.Gui, v *gocui.View) error {
|
||||
return gui.exitFilterMode()
|
||||
}
|
||||
|
||||
currentContext := gui.currentContext()
|
||||
if currentContext != nil && currentContext.GetParentContext() != nil {
|
||||
// TODO: think about whether this should be marked as a return rather than adding to the stack
|
||||
gui.switchContext(currentContext.GetParentContext())
|
||||
}
|
||||
|
||||
if gui.Config.GetUserConfig().GetBool("quitOnTopLevelReturn") {
|
||||
return gui.handleQuit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user