aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2008-11-09 12:30:22 +0000
committeranekos2008-11-09 12:30:22 +0000
commitde59bc304b6ad1db848a7b6844cb0a0fa5bca9ea (patch)
tree84b3ea581a3749898627026c44ca39f39745ce1f
parent94dda55f32c4c05b2d0c18cacf76310b46dca06b (diff)
downloadvimperator-plugins-de59bc304b6ad1db848a7b6844cb0a0fa5bca9ea.tar.bz2
補完リストでフィルタ出来るようにした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23055 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--nico_related_videos.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/nico_related_videos.js b/nico_related_videos.js
index 75389fc..d6a3eea 100644
--- a/nico_related_videos.js
+++ b/nico_related_videos.js
@@ -2,7 +2,7 @@
// @name Nico Related Videos
// @description-ja ニコニコ動画のオススメ動画のリスト
// @license Creative Commons 2.1 (Attribution + Share Alike)
-// @version 1.2.0
+// @version 1.3.0
// ==/VimperatorPlugin==
//
// Author:
@@ -101,7 +101,8 @@
getRelatedTags().forEach(function (it) last.completions.push([":" + it, "tag"]));
last.url = buffer.URL;
}
- return [0, last.completions.length ? last.completions : [[nothing, nothing]]];
+ return [0, last.completions.length ? completion.filter(last.completions, args)
+ : [[nothing, nothing]]];
}
}
);