aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteramako2008-11-19 14:53:02 +0000
committerteramako2008-11-19 14:53:02 +0000
commit68ab7cc94b606aaa312297a6cde162bef46a3529 (patch)
treefd742361a22762963b84de8db75e45e99108c1e0
parent942dd8b8c7bc281cc3edb97b6d11e4e2c177a4e0 (diff)
downloadvimperator-plugins-68ab7cc94b606aaa312297a6cde162bef46a3529.tar.bz2
cosmetic change
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24352 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--copy.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/copy.js b/copy.js
index cfd9176..e42910c 100644
--- a/copy.js
+++ b/copy.js
@@ -80,7 +80,7 @@ liberator.globalVariables.copy_templates.forEach(function(template){
//const defaultValue = templates[0].label;
commands.addUserCommand(['copy'],'Copy to clipboard',
function(args, special){
- liberator.plugins.exCopy.copy(args, special);
+ liberator.plugins.exCopy.copy(args.string, special);
},{
completer: function(filter, special){
if (special){
@@ -143,8 +143,7 @@ var exCopyManager = {
get: function(label){
return getCopyTemplate(label);
},
- copy: function(args, special){
- var arg = args.string == undefined ? args: args.string;
+ copy: function(arg, special){
var copyString = '';
var isError = false;
if (special && arg){