aboutsummaryrefslogtreecommitdiffstats
path: root/access_hatena.js
diff options
context:
space:
mode:
authoraereal2011-06-19 17:17:58 +0900
committeraereal2011-06-19 17:17:58 +0900
commitf2fded5246b370d8f38a4643094f3a054556eeda (patch)
tree45874c2fa04017ac508884b6b342fe609399f6eb /access_hatena.js
parentdd01081890d25934d5f5f296e4680ee090484012 (diff)
downloadvimperator-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.js3
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;
}
}
}