aboutsummaryrefslogtreecommitdiffstats
path: root/mkcolor.js
diff options
context:
space:
mode:
authoranekos2009-11-02 10:00:42 +0000
committeranekos2009-11-02 10:00:42 +0000
commitdb24ae5afa00146ae709a44a28a65adf400f1aa8 (patch)
treec25a045a9a5cbd333c25ac5fdc7b7ae15c0968e2 /mkcolor.js
parentb059bd7607fb1c13133b69fd42a9f1f8456ef4c0 (diff)
downloadvimperator-plugins-db24ae5afa00146ae709a44a28a65adf400f1aa8.tar.bz2
Follow HEAD (2.3pre)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35833 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'mkcolor.js')
-rw-r--r--mkcolor.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/mkcolor.js b/mkcolor.js
index e6cf738..40870ff 100644
--- a/mkcolor.js
+++ b/mkcolor.js
@@ -39,13 +39,13 @@ let PLUGIN_INFO =
<name lang="ja">mkcolor</name>
<description>Write current highlights to the specified file.</description>
<description lang="ja">現在のHighlightを指定のファイルに書き出す。</description>
- <version>1.0.1</version>
+ <version>1.0.2</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
<updateURL>http://coderepos.org/share/export/27234/lang/javascript/vimperator-plugins/trunk/mkcolor.js</updateURL>
- <minVersion>2.0pre</minVersion>
- <maxVersion>2.0pre</maxVersion>
+ <minVersion>2.3pre</minVersion>
+ <maxVersion>2.3pre</maxVersion>
<detail><![CDATA[
== Commands ==
- mkcolor <FILENAME>
@@ -78,7 +78,7 @@ let PLUGIN_INFO =
'Write current highlights to the specified file',
function (args) {
let filename = args[0];
- let file = io.getFile(filename);
+ let file = io.File(filename);
if (file.exists() && !args.bang)
return liberator.echoerr(filename + ' already exists (add ! to override)');
io.writeFile(file, getcolor());