mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:57:59 +01:00
Fix OPTION_NOARG's completion.
If the option is OPTION_NOARG, args[-opt] becomes null.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user