From 688b529fdce64af6bf6f1a92301e2ab83b94f130 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 26 Sep 2009 22:54:09 +1000 Subject: [PATCH] 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 --- common/content/commands.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/content/commands.js b/common/content/commands.js index d7fcaa10..f40e0cf5 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -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),