From e59122150932ae2cad32ab5881ed40ef0d722812 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 21:34:12 -0400 Subject: Expire status errors on input --- widgets/status.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/status.go') 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 -- cgit