From 3abd88276efee87f63a06eeee5d4307e982d16a0 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 20 Jan 2009 23:40:07 +0900 Subject: [PATCH] Fix OPTION_NOARG's completion. If the option is OPTION_NOARG, args[-opt] becomes null. --- 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 b95b2437..170568b1 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -623,7 +623,7 @@ function Commands() //{{{ } } - args[opt[0][0]] = arg; // always use the first name of the option + args[opt[0][0]] = opt[1] == this.OPTION_NOARG || arg; // always use the first name of the option i += optname.length + count; if (i == str.length) break outer;