diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 511d24ac..df841028 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -349,9 +349,9 @@ selectTab = (direction, count = 1) -> toSelect = switch direction when "next" - Math.min tabs.length - 1, currentTab.index + count + (currentTab.index + count) % tabs.length when "previous" - Math.max 0, currentTab.index - count + (currentTab.index - count + count * tabs.length) % tabs.length when "first" Math.min tabs.length - 1, count - 1 when "last" |
