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 5b1b151f..ae8319bc 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -218,6 +218,10 @@ func (aerc *Aerc) RemoveTab(tab ui.Drawable) {
aerc.tabs.Remove(tab)
}
+func (aerc *Aerc) ReplaceTab(tabSrc ui.Drawable, tabTarget ui.Drawable, name string) {
+ aerc.tabs.Replace(tabSrc, tabTarget, name)
+}
+
func (aerc *Aerc) NextTab() {
next := aerc.tabs.Selected + 1
if next >= len(aerc.tabs.Tabs) {