diff --git a/app.go b/app.go index d757c29..ea4ba6b 100644 --- a/app.go +++ b/app.go @@ -374,6 +374,10 @@ func (app *app) loop() { continue } + if cmd, ok := gOpts.cmds["on-quit"]; ok { + cmd.eval(app, nil) + } + app.quit() app.nav.previewChan <- ""