From 0463990fe75c4573fc6463fe685d2ea1e400c370 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Fri, 21 Mar 2008 01:40:50 +0000 Subject: lang/javascript/vimperator-plugins/trunk: 08/03/19のCVS HEADに対応 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8231 d0d07461-0603-4401-acd4-de1884942a52 --- encodingSwitcher.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'encodingSwitcher.js') diff --git a/encodingSwitcher.js b/encodingSwitcher.js index dc0de26..fc98f4c 100644 --- a/encodingSwitcher.js +++ b/encodingSwitcher.js @@ -87,7 +87,7 @@ function completion(array, filter){ } var sbCharDefault = sbService.createBundle(gPrefService.getDefaultBranch('intl.charset.').getCharPref('default')); const DEFAULT_CHARSET = sbCharDefault.GetStringFromName('intl.charset.default'); -vimperator.options.add(new vimperator.Option( ['fileencoding','fenc'], 'string', +liberator.options.add(new liberator.Option( ['fileencoding','fenc'], 'string', { shortHelp: 'set the charactor encoding for the current page', help: 'Please make certain of available value with :lsenc command', @@ -113,7 +113,7 @@ vimperator.options.add(new vimperator.Option( ['fileencoding','fenc'], 'string', )); var sbCharDetector = sbService.createBundle(gPrefService.getDefaultBranch('intl.charset.').getCharPref('detector')); const DEFAULT_DETECTOR = createDetector(sbCharDetector.GetStringFromName('intl.charset.detector'))[0]; -vimperator.options.add(new vimperator.Option( ['autodetector','audet'], 'string', +liberator.options.add(new liberator.Option( ['autodetector','audet'], 'string', { shortHelp: 'set auto detect character encoding', help: 'Please make certain of available value with :lsdet command', @@ -165,11 +165,11 @@ function listCharset(arg, current, list){ } }); str.push(''); - vimperator.echo( str.join(''), true); + liberator.echo( str.join(''), true); } -vimperator.commands.add(new vimperator.Command(['listencoding','lsenc'], +liberator.commands.add(new liberator.Command(['listencoding','lsenc'], function(arg){ - listCharset(arg, vimperator.options.fileencoding, encodings); + listCharset(arg, liberator.options.fileencoding, encodings); },{ usage: ['listencoding [expr]','lsenc [expr]'], shortHelp: 'list all encodings', @@ -179,9 +179,9 @@ vimperator.commands.add(new vimperator.Command(['listencoding','lsenc'], } } )); -vimperator.commands.add(new vimperator.Command(['listdetector','lsdet'], +liberator.commands.add(new liberator.Command(['listdetector','lsdet'], function(arg){ - listCharset(arg, vimperator.options.autodetector, detectors); + listCharset(arg, liberator.options.autodetector, detectors); },{ usage: ['listdetector [expr]','lsdet [expr]'], shortHelp: 'list all auto detectors', -- cgit v1.2.3