diff options
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 6ee55759..b6e7bd56 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -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 { |