summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index a1158fd5..ec0f6471 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -334,7 +334,7 @@ function Tabs() //{{{
liberator.echoerr("E94: No matching tab for " + arg);
}
else // just remove the current tab
- tabs.remove(tabs.getTab(), count > 0 ? count : 1, special, 0);
+ tabs.remove(tabs.getTab(), Math.max(count, 1), special, 0);
},
{
argCount: "?",