diff --git a/common/content/tabs.js b/common/content/tabs.js index 1acb38c7..0dffdc6b 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -798,7 +798,12 @@ var Tabs = Module("tabs", { if (config.has("tabbrowser")) { commands.add(["b[uffer]"], "Switch to a buffer", - function (args) { tabs.switchTo(args[0], args.bang, args.count); }, { + function (args) { + if (args.length) + tabs.switchTo(args[0], args.bang, args.count); + else if (args.count) + tabs.switchTo(String(args.count)); + }, { argCount: "?", bang: true, count: true, diff --git a/common/locale/en-US/tabs.xml b/common/locale/en-US/tabs.xml index f4379266..35d32595 100644 --- a/common/locale/en-US/tabs.xml +++ b/common/locale/en-US/tabs.xml @@ -224,9 +224,9 @@
If argument is neither a full URL nor an index but uniquely identifies a
buffer, by a partial match with the URL or title, it is selected.
- With
If argument is #, the alternate buffer will be selected (see