aboutsummaryrefslogtreecommitdiffstats
path: root/copy.js
diff options
context:
space:
mode:
authorteramako2008-04-02 18:56:46 +0000
committerteramako2008-04-02 18:56:46 +0000
commitba651ea64aed9d2776c1cd522a57850879faefc3 (patch)
tree39d370de96f925b8939016a39035045770f4749f /copy.js
parent0a9cb46ae2ae5bb3d4085b3846d9cdcbfff138eb (diff)
downloadvimperator-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.js6
1 files changed, 3 insertions, 3 deletions
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){