From 93e166e86b8178e49f447fd96d2f3a3e99b8f1b9 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 6 May 2009 21:42:34 +1000 Subject: [PATCH] Refactor "gt" action. --- common/content/tabs.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index 44fa4bf2..c4802f59 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -220,7 +220,13 @@ function Tabs() //{{{ mappings.add([modes.NORMAL], ["gt"], "Go to the next tab", - function (count) { tabs.select(count > 0 ? count - 1 : "+1", count > 0 ? false : true); }, + function (count) + { + if (count > 0) + tabs.select(count - 1, false); + else + tabs.select("+1", true); + }, { flags: Mappings.flags.COUNT }); mappings.add([modes.NORMAL], ["", "", ""],