diff options
Diffstat (limited to 'pkg/gui/quitting.go')
-rw-r--r-- | pkg/gui/quitting.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/quitting.go b/pkg/gui/quitting.go index fca71d221..f9ad00177 100644 --- a/pkg/gui/quitting.go +++ b/pkg/gui/quitting.go @@ -38,6 +38,12 @@ func (gui *Gui) quit(v *gocui.View) error { if gui.State.Updating { return gui.createUpdateQuitConfirmation(gui.g, v) } + if gui.inDiffMode() { + return gui.exitDiffMode() + } + if gui.inFilterMode() { + return gui.exitFilterMode() + } if gui.Config.GetUserConfig().GetBool("confirmOnQuit") { return gui.createConfirmationPanel(gui.g, v, true, "", gui.Tr.SLocalize("ConfirmQuit"), func(g *gocui.Gui, v *gocui.View) error { return gocui.ErrQuit |