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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index f27f5e37..dabc2f31 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -763,7 +763,7 @@ var Tabs = Module("tabs", {
function () { tabs.stopAll(); },
{ argCount: "0" });
- // TODO: add count support
+ // TODO: add count and bang multimatch support - unify with :buffer nonsense
commands.add(["tabm[ove]"],
"Move the current tab to the position of tab N",
function (args) {
@@ -771,7 +771,8 @@ var Tabs = Module("tabs", {
if (tabs.indexFromSpec(arg) == -1) {
let tabs = [tab for (tab in matchTabs(args, true))];
- dactyl.assert(tabs.length == 1);
+ dactyl.assert(tabs.length, _("error.invalidArgument", arg));
+ dactyl.assert(tabs.length == 1, _("buffer.multipleMatching", arg));
arg = tabs[0];
}
tabs.move(tabs.getTab(), arg, args.bang);