diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-15 20:38:37 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-01 01:01:07 +0200 |
commit | 088d63ce934c34e113a5b3154dfcf91b49132067 (patch) | |
tree | a743b7f5f563d7382ebde83cac5ba498b3f6b1e7 /commands/compose/abort.go | |
parent | aec90650f63ff0195599dae817016db137964bcb (diff) | |
download | aerc-088d63ce934c34e113a5b3154dfcf91b49132067.tar.gz |
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 <robin@jarry.cc>
Diffstat (limited to 'commands/compose/abort.go')
-rw-r--r-- | commands/compose/abort.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/compose/abort.go b/commands/compose/abort.go index 44711eb3..d6a81b57 100644 --- a/commands/compose/abort.go +++ b/commands/compose/abort.go @@ -26,8 +26,7 @@ func (Abort) Execute(aerc *widgets.Aerc, args []string) error { } composer, _ := aerc.SelectedTabContent().(*widgets.Composer) - aerc.RemoveTab(composer) - composer.Close() + aerc.RemoveTab(composer, true) return nil } |