aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 3c6566de..5b1b151f 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -243,6 +243,10 @@ func (aerc *Aerc) PushStatus(text string, expiry time.Duration) *StatusMessage {
return aerc.statusline.Push(text, expiry)
}
+func (aerc *Aerc) PushError(text string) {
+ aerc.PushStatus(text, 10*time.Second).Color(tcell.ColorDefault, tcell.ColorRed)
+}
+
func (aerc *Aerc) focus(item libui.Interactive) {
if aerc.focused == item {
return