mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 02:14:12 +01:00
Clarify some arg counts and some related tests.
--HG-- extra : rebase_source : e50c757b46406988b0bfa0c179ec1e9bad21a446
This commit is contained in:
@@ -621,16 +621,14 @@ var Tabs = Module("tabs", {
|
||||
commands.add(["keepa[lt]"],
|
||||
"Execute a command without changing the current alternate buffer",
|
||||
function (args) {
|
||||
let alternate = tabs.alternate;
|
||||
|
||||
try {
|
||||
dactyl.execute(args[0], null, true);
|
||||
}
|
||||
finally {
|
||||
tabs.updateSelectionHistory([tabs.getTab(), alternate]);
|
||||
tabs.updateSelectionHistory([tabs.getTab(), tabs.alternate]);
|
||||
}
|
||||
}, {
|
||||
argCount: "+",
|
||||
argCount: "1",
|
||||
completer: function (context) completion.ex(context),
|
||||
literal: 0,
|
||||
subCommand: 0
|
||||
@@ -644,7 +642,7 @@ var Tabs = Module("tabs", {
|
||||
dactyl.execute(args[0], null, true);
|
||||
});
|
||||
}, {
|
||||
argCount: "+",
|
||||
argCount: "1",
|
||||
completer: function (context) completion.ex(context),
|
||||
literal: 0,
|
||||
subCommand: 0
|
||||
|
||||
Reference in New Issue
Block a user