mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 11:15:45 +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:
@@ -1128,7 +1128,13 @@ function Commands() //{{{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
bang: true,
|
bang: true,
|
||||||
completer: function (context) completion.userCommand(context),
|
completer: function (context, args)
|
||||||
|
{
|
||||||
|
if (args.completeArg == 0)
|
||||||
|
completion.userCommand(context);
|
||||||
|
else
|
||||||
|
completion.ex(context);
|
||||||
|
},
|
||||||
options: [
|
options: [
|
||||||
[["-nargs"], self.OPTION_STRING,
|
[["-nargs"], self.OPTION_STRING,
|
||||||
function (arg) /^[01*?+]$/.test(arg),
|
function (arg) /^[01*?+]$/.test(arg),
|
||||||
|
|||||||
Reference in New Issue
Block a user