mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix: commands.parseArgs raises "Invalid option: .." Error.
When command(:foo) has NOARG option(-bar), ":foo -bar<CR>" raises the error.
This commit is contained in:
@@ -573,7 +573,7 @@ function Commands() //{{{
|
||||
|
||||
count++; // to compensate the "=" character
|
||||
}
|
||||
else if (!/\s/.test(sep)) // this isn't really an option as it has trailing characters, parse it as an argument
|
||||
else if (!/\s/.test(sep) && sep != undefined) // this isn't really an option as it has trailing characters, parse it as an argument
|
||||
{
|
||||
invalid = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user