summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands.go b/commands.go
index 6be50ed..fee0571 100644
--- a/commands.go
+++ b/commands.go
@@ -277,7 +277,9 @@ func commandDoQuit(app *App, buffer string, args []string) (err error) {
if 0 < len(args) {
reason = args[0]
}
- app.s.Quit(reason)
+ if app.s != nil {
+ app.s.Quit(reason)
+ }
app.win.Exit()
return
}