diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-05 20:23:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:05 +0200 |
commit | d7feb56cbe7b81160b580ec2f5dcaef78c7a2230 (patch) | |
tree | 8e5ea08f8ff55bfbeac9603efdfbbe7ef9e7a581 /widgets/account.go | |
parent | aae46c7afdf4f64a49384afde41984edf936da76 (diff) | |
download | aerc-d7feb56cbe7b81160b580ec2f5dcaef78c7a2230.tar.gz |
fix panic on closing a tab
This change fixes a panic caused by the selected tab being out of sync
when selecting a new one in widgets.(*Aerc).SelectedTab(). This happens
if the tab is already removed from the list of tabs, but the selection
not yet being updated.
This was achieved by moving the tabs behind updating the selection.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'widgets/account.go')
0 files changed, 0 insertions, 0 deletions