From e18ab1daa6c54b831950f337a29df0b19da16ca3 Mon Sep 17 00:00:00 2001 From: suVene Date: Wed, 4 Feb 2009 15:41:51 +0000 Subject: custom method の場合にも置換後の文字列を渡すように parameter 追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29547 d0d07461-0603-4401-acd4-de1884942a52 --- copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'copy.js') 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 { -- cgit v1.2.3