diff options
author | teramako | 2008-04-02 18:56:46 +0000 |
---|---|---|
committer | teramako | 2008-04-02 18:56:46 +0000 |
commit | ba651ea64aed9d2776c1cd522a57850879faefc3 (patch) | |
tree | 39d370de96f925b8939016a39035045770f4749f /copy.js | |
parent | 0a9cb46ae2ae5bb3d4085b3846d9cdcbfff138eb (diff) | |
download | vimperator-plugins-ba651ea64aed9d2776c1cd522a57850879faefc3.tar.bz2 |
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
Diffstat (limited to 'copy.js')
-rw-r--r-- | copy.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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){ |