From ba651ea64aed9d2776c1cd522a57850879faefc3 Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 2 Apr 2008 18:56:46 +0000 Subject: lang/javascript/vimperator-plugins/trunk/copy.js: fix completer method git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8695 d0d07461-0603-4401-acd4-de1884942a52 --- copy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'copy.js') diff --git a/copy.js b/copy.js index f3d52dc..0088d3a 100644 --- a/copy.js +++ b/copy.js @@ -1,9 +1,9 @@ /** * vimperator plugin * Add `copy' command - * For vimperator 0.5.3 + * For vimperator 0.6pre * @author teramako teramako@gmail.com - * @version 0.1 + * @version 0.2 * * Usage: * :copy {copyString} -> copy the argument replaced some certain string @@ -89,7 +89,7 @@ liberator.commands.addUserCommand(['copy'],'Copy to clipboard', templates.push([option.names[1], option.value]); } } - if (!filter){ return templates; } + if (!filter){ return [0,templates]; } var candidates = []; templates.forEach(function(template){ if (template[0].indexOf(filter) == 0 || ('copy_'+template[0]).indexOf(filter) == 0){ -- cgit v1.2.3