From 6ff9aac40c04e18ac4f286effea34b248b2c9c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Mon, 18 Oct 2010 03:00:38 +0200 Subject: [PATCH] Provide JavaScript completion for the -js :command option. --- common/content/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/commands.js b/common/content/commands.js index 7cce8354..a2647f2f 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -1267,7 +1267,7 @@ const Commands = Module("commands", { if (args.completeArg == 0) completion.userCommand(context); else - completion.ex(context); + args["-javascript"] ? completion.javascript(context) : completion.ex(context); }, options: [ { names: ["-bang", "-b"], description: "Command may be proceeded by a !" },