diff options
author | Doug Kearns <dougkearns@gmail.com> | 2011-06-27 14:14:56 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2011-06-27 14:14:56 +1000 |
commit | ad64e494720663e39c163b5d9ef6e02753551e47 (patch) | |
tree | fb3095cdbb7b9aef88691064c3ab819e8c94da6c /common/content | |
parent | 50462000975eb435065aa46babdff7b5dbe94c5c (diff) | |
download | pentadactyl-ad64e494720663e39c163b5d9ef6e02753551e47.tar.gz |
Restore some :tabmove argument errors and update :help for recent changes.
--HG--
extra : rebase_source : 496b6d553c64e88cef45620dc1f8210301ad5fe2
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/tabs.js | 5 |
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); |