diff options
author | trapezoid | 2008-09-22 12:11:22 +0000 |
---|---|---|
committer | trapezoid | 2008-09-22 12:11:22 +0000 |
commit | be4d8ebf619cb3129b5ae90c1e62dcd89f25aa14 (patch) | |
tree | e24f180518ff69a1eb16c49efeaa65ebc2251a4f /direct_bookmark.js | |
parent | d2ec2c1208b5d145859f816e824de415b0e1ba1b (diff) | |
download | vimperator-plugins-be4d8ebf619cb3129b5ae90c1e62dcd89f25aa14.tar.bz2 |
タグの複数入力時に補完が冗長な表示だったのを修正。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@19734 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'direct_bookmark.js')
-rw-r--r-- | direct_bookmark.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/direct_bookmark.js b/direct_bookmark.js index 23aaee6..d1058e1 100644 --- a/direct_bookmark.js +++ b/direct_bookmark.js @@ -1,6 +1,6 @@ // Vimperator plugin: 'Direct Post to Social Bookmarks'
// Version: 0.12
-// Last Change: 24-Jun-2008. Jan 2008
+// Last Change: 22-Sep-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
// Parts:
@@ -636,8 +636,7 @@ var completionList = [];
if(liberator.plugins.direct_bookmark.tags.length == 0)
getTags().call([]);
- liberator.log(typeof match_result[1]);
- return [0, [[match_result[1] + "[" + tag + "]","Tag"]
+ return [match_result[1].length, [["[" + tag + "]","Tag"]
for each (tag in liberator.plugins.direct_bookmark.tags) if (m.test(tag) && match_result[1].indexOf('[' + tag + ']') < 0)]];
},
options: [
|