1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 15:47:58 +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:
anekos
2009-02-03 20:08:00 +09:00
parent 8398287449
commit e7c57052fa

View File

@@ -573,7 +573,7 @@ function Commands() //{{{
count++; // to compensate the "=" character 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; invalid = true;
} }