1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-18 02:24:12 +01:00

Use Ex command completion for the second arg of :command.

--HG--
extra : transplant_source : %A2%158%CF%98%7F%16%B4iz%22%12_%A0%B85%FD%DE%05%1C
This commit is contained in:
Doug Kearns
2009-09-26 22:54:09 +10:00
parent cd474c1d6a
commit 688b529fdc

View File

@@ -1128,7 +1128,13 @@ function Commands() //{{{
},
{
bang: true,
completer: function (context) completion.userCommand(context),
completer: function (context, args)
{
if (args.completeArg == 0)
completion.userCommand(context);
else
completion.ex(context);
},
options: [
[["-nargs"], self.OPTION_STRING,
function (arg) /^[01*?+]$/.test(arg),