Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created September 20, 2012 15:17
Show Gist options
  • Select an option

  • Save saitoha/3756540 to your computer and use it in GitHub Desktop.

Select an option

Save saitoha/3756540 to your computer and use it in GitHub Desktop.
vimperator issue: "map - <something>" does not works
diff -ruN a/common/content/commands.js b/common/content/commands.js
--- a/common/content/commands.js 2012-08-04 07:41:20.000000000 +0900
+++ b/common/content/commands.js 2012-09-21 00:09:47.000000000 +0900
@@ -703,7 +703,7 @@
liberator.echoerr("Error parsing arguments: " + arg);
return null;
} // if /^\s*-/ is NOT TRUE, "-" be quoted.
- else if (!onlyArgumentsRemaining && /^-/.test(arg) && /^\s*-/.test(sub)) {
+ else if (!onlyArgumentsRemaining && /^-/.test(arg) && /^\s*-\S/.test(sub)) {
liberator.echoerr("Invalid option: " + arg);
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment