From de59bc304b6ad1db848a7b6844cb0a0fa5bca9ea Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 9 Nov 2008 12:30:22 +0000 Subject: 補完リストでフィルタ出来るようにした git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23055 d0d07461-0603-4401-acd4-de1884942a52 --- nico_related_videos.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nico_related_videos.js') 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]]]; } } ); -- cgit v1.2.3