mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:02:27 +01:00
Normalise the standard completer signatures to fn(context, args, ...).
This also fixes a number of the :command completers. --HG-- extra : rebase_source : 588a9b5a163ba3882c89d0716f292ef9658297f6
This commit is contained in:
@@ -1685,7 +1685,7 @@ const Dactyl = Module("dactyl", {
|
||||
}, {
|
||||
argCount: "?",
|
||||
bang: true,
|
||||
completer: function (context) completion.help(context, unchunked),
|
||||
completer: function (context, args) completion.help(context, args, unchunked),
|
||||
literal: 0
|
||||
});
|
||||
});
|
||||
@@ -1937,7 +1937,7 @@ const Dactyl = Module("dactyl", {
|
||||
};
|
||||
};
|
||||
|
||||
completion.help = function help(context, unchunked) {
|
||||
completion.help = function help(context, args, unchunked) {
|
||||
dactyl.initHelp();
|
||||
context.title = ["Help"];
|
||||
context.anchored = false;
|
||||
|
||||
Reference in New Issue
Block a user