Skip to content

Instantly share code, notes, and snippets.

@aereal
Created June 19, 2011 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aereal/1033893 to your computer and use it in GitHub Desktop.
Save aereal/1033893 to your computer and use it in GitHub Desktop.
diff --git a/access_hatena.js b/access_hatena.js
index 2f82fa1..b291b02 100644
--- a/access_hatena.js
+++ b/access_hatena.js
@@ -218,7 +218,8 @@ map ; :accesshatena
} else if (args.length == 2) {
var host = args[0].toString();
context.title = ["ID", "Page"];
- context.completions = [[ids[i], title.get(host, ids[i])] for (i in ids) if (ids.hasOwnProperty(i))];
+ var _completions = [[ids[i], title.get(host, ids[i])] for (i in ids) if (ids.hasOwnProperty(i))];
+ context.completions = host != 'd' ? _completions.filter(function(i){ return !/\+/.test(i[0]) }) : _completions;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment