diff options
author | aereal | 2011-06-19 17:17:58 +0900 |
---|---|---|
committer | aereal | 2011-06-19 17:17:58 +0900 |
commit | f2fded5246b370d8f38a4643094f3a054556eeda (patch) | |
tree | 45874c2fa04017ac508884b6b342fe609399f6eb /access_hatena.js | |
parent | dd01081890d25934d5f5f296e4680ee090484012 (diff) | |
download | vimperator-plugins-f2fded5246b370d8f38a4643094f3a054556eeda.tar.bz2 |
ignore sub-diary accounts when not specified a host of Hatena Diary
Diffstat (limited to 'access_hatena.js')
-rw-r--r-- | access_hatena.js | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } } |