aboutsummaryrefslogtreecommitdiffstats
path: root/copy.js
diff options
context:
space:
mode:
authorsuVene2009-02-04 15:41:51 +0000
committersuVene2009-02-04 15:41:51 +0000
commite18ab1daa6c54b831950f337a29df0b19da16ca3 (patch)
tree49bc5c4bcb38521e2c6d3988ac5ed65df670672d /copy.js
parentc0c9d2fa1d010b1fc56537a399009dfa37fb8e13 (diff)
downloadvimperator-plugins-e18ab1daa6c54b831950f337a29df0b19da16ca3.tar.bz2
custom method の場合にも置換後の文字列を渡すように parameter 追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29547 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'copy.js')
-rw-r--r--copy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy.js b/copy.js
index 353e1f8..473f5a4 100644
--- a/copy.js
+++ b/copy.js
@@ -298,7 +298,7 @@ var exCopyManager = {
var template = getCopyTemplate(arg) || {value: arg};
if (typeof template.custom == 'function'){
- copyString = template.custom.call(this, template.value);
+ copyString = template.custom.call(this, template.value, replaceVariable(template.value));
} else if (template.custom instanceof Array){
copyString = replaceVariable(template.value).replace(template.custom[0], template.custom[1]);
} else {