~sircmpwn/aerc

aabe3d9b3a58efd9f0ad9b39917b85092d0955a1 — Drew DeVault 1 year, 9 days ago 6784ed3
Fix invalid tab state when deselecting removed tab
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/ui/tab.go
M lib/ui/tab.go => lib/ui/tab.go +1 -1
@@ 94,7 94,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri

func (tabs *Tabs) Select(index int) {
	if index >= len(tabs.Tabs) {
		return
		index = len(tabs.Tabs) - 1
	}

	if tabs.Selected != index {