aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/status.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 21:34:12 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 21:34:12 -0400
commite59122150932ae2cad32ab5881ed40ef0d722812 (patch)
tree036d3bc807bc6bbad4bda301c6de6d5897f9f976 /widgets/status.go
parenta602891768d0272c8688731752f491eb92668d7d (diff)
downloadaerc-e59122150932ae2cad32ab5881ed40ef0d722812.tar.gz
Expire status errors on input
Diffstat (limited to 'widgets/status.go')
-rw-r--r--widgets/status.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/status.go b/widgets/status.go
index b7d94904..7a746fae 100644
--- a/widgets/status.go
+++ b/widgets/status.go
@@ -81,6 +81,10 @@ func (status *StatusLine) Push(text string, expiry time.Duration) *StatusMessage
return msg
}
+func (status *StatusLine) Expire() {
+ status.stack = nil
+}
+
func (msg *StatusMessage) Color(bg tcell.Color, fg tcell.Color) {
msg.bg = bg
msg.fg = fg