1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 21:08:12 +01:00

Fix OPTION_NOARG's completion.

If the option is OPTION_NOARG, args[-opt] becomes null.
This commit is contained in:
anekos
2009-01-20 23:40:07 +09:00
parent 9b8a23ca40
commit 3abd88276e

View File

@@ -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; i += optname.length + count;
if (i == str.length) if (i == str.length)
break outer; break outer;