From 088d63ce934c34e113a5b3154dfcf91b49132067 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 15 Mar 2023 20:38:37 +0100 Subject: tabs: make sure to close tab content Rework how tabs are closed. Change the aerc.RemoveTab and aerc.ReplaceTab functions to accept a new boolean argument. If true, make sure to close the tab content. Signed-off-by: Robin Jarry --- commands/terminal/close.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/terminal') diff --git a/commands/terminal/close.go b/commands/terminal/close.go index 1698e930..812266c0 100644 --- a/commands/terminal/close.go +++ b/commands/terminal/close.go @@ -25,6 +25,6 @@ func (Close) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("Usage: close") } term, _ := aerc.SelectedTabContent().(*widgets.Terminal) - term.Close(nil) + term.Close() return nil } -- cgit