diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-25 08:29:10 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-25 08:29:10 -0400 |
commit | 2f626ddd18e8472e0ddc2bb9013b7d01c1b5b9a9 (patch) | |
tree | fb39de5981ea9c4923d12c1bb176e52af5520183 /lib | |
parent | fe2fef4b750e570361eabc849c1ec09fe5eda01d (diff) | |
download | aerc-2f626ddd18e8472e0ddc2bb9013b7d01c1b5b9a9.tar.gz |
Fix panic when tabs.popHistory is nonexistent
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/tab.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go index 7808db4..a9b24a9 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -89,7 +89,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri func (tabs *Tabs) Select(index int) { if index >= len(tabs.Tabs) { - panic("Tried to set tab index to a non-existing element") + return } if tabs.Selected != index { |