summary refs log tree commit diff stats
path: root/commands/account/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/pipe.go')
-rw-r--r--commands/account/pipe.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/account/pipe.go b/commands/account/pipe.go
index a4c9848..f44de30 100644
--- a/commands/account/pipe.go
+++ b/commands/account/pipe.go
@@ -44,9 +44,12 @@ func Pipe(aerc *widgets.Aerc, args []string) error {
 				aerc.PushStatus(" "+err.Error(), 10*time.Second).
 					Color(tcell.ColorDefault, tcell.ColorRed)
 			} else {
-				// TODO: Tab-specific status stacks
 				aerc.PushStatus("Process complete, press any key to close.",
 					10*time.Second)
+				term.OnEvent = func(event tcell.Event) bool {
+					aerc.RemoveTab(term)
+					return true
+				}
 			}
 		}
 		term.OnStart = func() {
n112' href='#n112'>112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
 href='#n101'>101
102
103
104
105
106
107