aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index fe3a2e7b..d63c9eef 100644
--- a/main.go
+++ b/main.go
@@ -307,6 +307,11 @@ loop:
callback()
case <-ui.Redraw:
ui.Render()
+ case <-ui.SuspendQueue:
+ err = ui.Suspend()
+ if err != nil {
+ app.PushError(fmt.Sprintf("suspend: %s", err))
+ }
case <-ui.Quit:
err = app.CloseBackends()
if err != nil {