Skip to content

Instantly share code, notes, and snippets.

@littlefolk
Created November 27, 2009 08:40
Show Gist options
  • Save littlefolk/243907 to your computer and use it in GitHub Desktop.
Save littlefolk/243907 to your computer and use it in GitHub Desktop.
vimperator patch: ":dialog addon -> :dialog addo"
diff -r cd6428c447f7 common/content/liberator.js
--- a/common/content/liberator.js Wed Nov 25 23:44:35 2009 +0100
+++ b/common/content/liberator.js Fri Nov 27 17:19:47 2009 +0900
@@ -1275,7 +1275,7 @@
let dialogs = config.dialogs;
for (let [, dialog] in Iterator(dialogs)) {
- if (util.compareIgnoreCase(arg, dialog[0]) == 0) {
+ if (dialog[0].indexOf(arg) == 0) {
dialog[2]();
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment