1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

convert single quotes to double quotes

This commit is contained in:
Doug Kearns
2007-11-06 11:22:39 +00:00
parent e6a678257d
commit b204012556
15 changed files with 75 additions and 75 deletions

View File

@@ -40,7 +40,7 @@ vimperator.Bookmarks = function() //{{{
.getService(Components.interfaces.nsITaggingService); .getService(Components.interfaces.nsITaggingService);
const search_service = Components.classes["@mozilla.org/browser/search-service;1"] const search_service = Components.classes["@mozilla.org/browser/search-service;1"]
.getService(Components.interfaces.nsIBrowserSearchService); .getService(Components.interfaces.nsIBrowserSearchService);
const io_service = Components.classes['@mozilla.org/network/io-service;1'] const io_service = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService); .getService(Components.interfaces.nsIIOService);
var bookmarks = null; var bookmarks = null;
@@ -623,7 +623,7 @@ vimperator.Marks = function() //{{{
} }
else else
{ {
var pattern = new RegExp("[" + filter.replace(/\s+/g, '') + "]"); var pattern = new RegExp("[" + filter.replace(/\s+/g, "") + "]");
for (var mark in url_marks) for (var mark in url_marks)
{ {
if (pattern.test(mark)) if (pattern.test(mark))
@@ -758,7 +758,7 @@ vimperator.QuickMarks = function() //{{{
this.remove = function(filter) this.remove = function(filter)
{ {
var pattern = new RegExp("[" + filter.replace(/\s+/g, '') + "]"); var pattern = new RegExp("[" + filter.replace(/\s+/g, "") + "]");
for (var qmark in qmarks) for (var qmark in qmarks)
{ {

View File

@@ -175,8 +175,8 @@ vimperator.Buffer = function() //{{{
var result = doc.evaluate(expression, elem, var result = doc.evaluate(expression, elem,
function lookupNamespaceURI(prefix) { function lookupNamespaceURI(prefix) {
switch (prefix) { switch (prefix) {
case 'xhtml': case "xhtml":
return 'http://www.w3.org/1999/xhtml'; return "http://www.w3.org/1999/xhtml";
default: default:
return null; return null;
} }
@@ -625,7 +625,7 @@ vimperator.Buffer = function() //{{{
if (!verbose) if (!verbose)
{ {
var info = []; // tmp array for joining later var info = []; // tmp array for joining later
var file = window.content.document.location.pathname.split('/').pop() || "[No Name]"; var file = window.content.document.location.pathname.split("/").pop() || "[No Name]";
var title = window.content.document.title || "[No Title]"; var title = window.content.document.title || "[No Title]";
if (pageSize[1]) if (pageSize[1])

View File

@@ -103,8 +103,8 @@ vimperator.Command.prototype.hasName = function(name)
// true if the candidate matches unambiguously // true if the candidate matches unambiguously
function matchAbbreviation(name, format) function matchAbbreviation(name, format)
{ {
var minimum = format.indexOf('['); // minumum number of characters for a command name match var minimum = format.indexOf("["); // minumum number of characters for a command name match
var fullname = format.replace(/\[(\w+)\]$/, '$1'); // full command name var fullname = format.replace(/\[(\w+)\]$/, "$1"); // full command name
if (fullname.indexOf(name) == 0 && name.length >= minimum) if (fullname.indexOf(name) == 0 && name.length >= minimum)
return true; return true;
else else
@@ -485,7 +485,7 @@ vimperator.Commands = function() //{{{
this.parseCommand = function(str, tag) this.parseCommand = function(str, tag)
{ {
// remove comments // remove comments
str.replace(/\s*".*$/, ''); str.replace(/\s*".*$/, "");
if (tag) // we already have a multiline heredoc construct if (tag) // we already have a multiline heredoc construct
{ {
@@ -516,7 +516,7 @@ vimperator.Commands = function() //{{{
matches[4] = tag[1]; matches[4] = tag[1];
} }
else else
matches[3] = ''; matches[3] = "";
return matches; return matches;
} }
@@ -1052,7 +1052,7 @@ vimperator.Commands = function() //{{{
else else
{ {
if (!reference[0]) { if (!reference[0]) {
if (reference[2] == 'g') if (reference[2] == "g")
reference[0] = vimperator.globalVariables; reference[0] = vimperator.globalVariables;
else else
return; // for now return; // for now
@@ -1060,11 +1060,11 @@ vimperator.Commands = function() //{{{
if (match[3]) if (match[3])
{ {
if (match[3] == '+') if (match[3] == "+")
reference[0][reference[1]] += expr; reference[0][reference[1]] += expr;
else if (match[3] == '-') else if (match[3] == "-")
reference[0][reference[1]] -= expr; reference[0][reference[1]] -= expr;
else if (match[3] == '.') else if (match[3] == ".")
reference[0][reference[1]] += expr.toString(); reference[0][reference[1]] += expr.toString();
} }
else else
@@ -1080,13 +1080,13 @@ vimperator.Commands = function() //{{{
return vimperator.echoerr("E121: Undefined variable: " + match[1]); return vimperator.echoerr("E121: Undefined variable: " + match[1]);
var value = reference[0][reference[1]]; var value = reference[0][reference[1]];
if (typeof value == 'number') if (typeof value == "number")
var prefix = '#'; var prefix = "#";
else if (typeof value == 'function') else if (typeof value == "function")
var prefix = '*'; var prefix = "*";
else else
var prefix = ''; var prefix = "";
vimperator.echo(reference[1] + '\t\t' + prefix + value); vimperator.echo(reference[1] + "\t\t" + prefix + value);
} }
}, },
{ {
@@ -1220,8 +1220,8 @@ vimperator.Commands = function() //{{{
if (leader_reg.test(lhs)) if (leader_reg.test(lhs))
{ {
var leader_ref = vimperator.variableReference('mapleader'); var leader_ref = vimperator.variableReference("mapleader");
var leader = leader_ref[0] ? leader_ref[0][leader_ref[1]] : '\\'; var leader = leader_ref[0] ? leader_ref[0][leader_ref[1]] : "\\";
lhs = lhs.replace(leader_reg, leader); lhs = lhs.replace(leader_reg, leader);
} }
@@ -1299,7 +1299,7 @@ vimperator.Commands = function() //{{{
return; return;
} }
var filter = args.replace(/[^a-zA-Z]/g, ''); var filter = args.replace(/[^a-zA-Z]/g, "");
vimperator.marks.list(filter); vimperator.marks.list(filter);
}, },
{ {
@@ -1571,7 +1571,7 @@ vimperator.Commands = function() //{{{
return; return;
} }
var filter = args.replace(/[^a-zA-Z0-9]/g, ''); var filter = args.replace(/[^a-zA-Z0-9]/g, "");
vimperator.quickmarks.list(filter); vimperator.quickmarks.list(filter);
}, },
{ {
@@ -1893,7 +1893,7 @@ vimperator.Commands = function() //{{{
{ {
if (menu.childNodes[i].label == args) if (menu.childNodes[i].label == args)
{ {
eval(menu.childNodes[i].getAttribute('oncommand')); eval(menu.childNodes[i].getAttribute("oncommand"));
break; break;
} }
} }
@@ -2209,7 +2209,7 @@ vimperator.Commands = function() //{{{
return vimperator.echoerr("E471: Argument required"); return vimperator.echoerr("E471: Argument required");
var names = args.split(/ /); var names = args.split(/ /);
if (typeof names == 'string') names = [names]; if (typeof names == "string") names = [names];
var length = names.length; var length = names.length;
for (var i = 0, name = names[i]; i < length; name = names[++i]) for (var i = 0, name = names[i]; i < length; name = names[++i])
{ {

View File

@@ -112,7 +112,7 @@ vimperator.Completion = function() // {{{
get_longest_substring: function() //{{{ get_longest_substring: function() //{{{
{ {
if (g_substrings.length == 0) if (g_substrings.length == 0)
return ''; return "";
var longest = g_substrings[0]; var longest = g_substrings[0];
for (var i = 1; i < g_substrings.length; i++) for (var i = 1; i < g_substrings.length; i++)
@@ -139,13 +139,13 @@ vimperator.Completion = function() // {{{
// join all completion arrays together // join all completion arrays together
for (var i = 0; i < cpt.length; i++) for (var i = 0; i < cpt.length; i++)
{ {
if (cpt[i] == 's') if (cpt[i] == "s")
completions = completions.concat(this.get_search_completions(filter)); completions = completions.concat(this.get_search_completions(filter));
else if (cpt[i] == 'b') else if (cpt[i] == "b")
completions = completions.concat(vimperator.bookmarks.get(filter)); completions = completions.concat(vimperator.bookmarks.get(filter));
else if (cpt[i] == 'h') else if (cpt[i] == "h")
completions = completions.concat(vimperator.history.get(filter)); completions = completions.concat(vimperator.history.get(filter));
else if (cpt[i] == 'f') else if (cpt[i] == "f")
completions = completions.concat(this.get_file_completions(filter, true)); completions = completions.concat(this.get_file_completions(filter, true));
} }

View File

@@ -578,7 +578,7 @@ vimperator.Editor = function() //{{{
if (abbrev[lhs][0][0] == "c" && filter == "c") if (abbrev[lhs][0][0] == "c" && filter == "c")
abbrev[lhs][0] = abbrev[lhs][1]; abbrev[lhs][0] = abbrev[lhs][1];
abbrev[lhs][1] = ''; abbrev[lhs][1] = "";
return true; return true;
} }

View File

@@ -634,7 +634,7 @@ vimperator.Events = function() //{{{
} }
var count_str = vimperator.input.buffer.match(/^[0-9]*/)[0]; var count_str = vimperator.input.buffer.match(/^[0-9]*/)[0];
var candidate_command = (vimperator.input.buffer + key).replace(count_str, ''); var candidate_command = (vimperator.input.buffer + key).replace(count_str, "");
var map; var map;
// counts must be at the start of a complete mapping (10j -> go 10 lines down) // counts must be at the start of a complete mapping (10j -> go 10 lines down)

View File

@@ -99,7 +99,7 @@ vimperator.Search = function() //{{{
pattern = pattern.replace(/(\\)?\\[cC]/g, function($0, $1) { return $1 ? $0 : ""; }); pattern = pattern.replace(/(\\)?\\[cC]/g, function($0, $1) { return $1 ? $0 : ""; });
// remove any modifer escape \ // remove any modifer escape \
pattern = pattern.replace(/\\(\\[cCuU])/g, '$1'); pattern = pattern.replace(/\\(\\[cCuU])/g, "$1");
search_string = pattern; search_string = pattern;
} }

View File

@@ -104,7 +104,7 @@ vimperator.help = function(section, easter) //{{{
// add more space between entries // add more space between entries
ret += separator; ret += separator;
} }
ret = ret.replace(new RegExp(separator + '$'), ''); // FIXME: far too tasty! ret = ret.replace(new RegExp(separator + "$"), ""); // FIXME: far too tasty!
return ret; return ret;
} }
@@ -121,7 +121,7 @@ vimperator.help = function(section, easter) //{{{
} }
else else
{ {
if (typeof command.default_value == 'string' && command.default_value.length == 0) if (typeof command.default_value == "string" && command.default_value.length == 0)
ret += "''"; ret += "''";
else else
ret += command.default_value; ret += command.default_value;
@@ -181,14 +181,14 @@ vimperator.help = function(section, easter) //{{{
'<table class="vimperator mappings">'; '<table class="vimperator mappings">';
mappings += makeHelpString(vimperator.mappings, "", "", null); mappings += makeHelpString(vimperator.mappings, "", "", null);
mappings += '</table>'; mappings += '</table>';
if (section && section == 'holy-grail') if (section && section == "holy-grail")
mappings += '<div><p id="holy-grail">You found it, Arthur!</p></div>\n'; mappings += '<div><p id="holy-grail">You found it, Arthur!</p></div>\n';
var commands = '<span style="float: right"><code class="tag">commands</code></span><h2 id="commands">Commands</h2>' + var commands = '<span style="float: right"><code class="tag">commands</code></span><h2 id="commands">Commands</h2>' +
'<table class="vimperator commands">\n'; '<table class="vimperator commands">\n';
commands += makeHelpString(vimperator.commands, ":", "", null); commands += makeHelpString(vimperator.commands, ":", "", null);
commands += '</table>'; commands += '</table>';
if (section && section == '42') if (section && section == "42")
commands += '<div><p id="42">What is the meaning of life, the universe and everything?<br/>' + commands += '<div><p id="42">What is the meaning of life, the universe and everything?<br/>' +
'Douglas Adams, the only person who knew what this question really was about is<br/>' + 'Douglas Adams, the only person who knew what this question really was about is<br/>' +
'now dead, unfortunately. So now you might wonder what the meaning of death<br/>' + 'now dead, unfortunately. So now you might wonder what the meaning of death<br/>' +
@@ -268,9 +268,9 @@ vimperator.help = function(section, easter) //{{{
if (!element) if (!element)
{ {
var firstChar = section.charAt(0); var firstChar = section.charAt(0);
if (firstChar != ':' && firstChar != "'") if (firstChar != ":" && firstChar != "'")
{ {
element = findSectionElement(':' + section); element = findSectionElement(":" + section);
if (!element) if (!element)
element = findSectionElement("'" + section + "'"); element = findSectionElement("'" + section + "'");
} }

View File

@@ -65,11 +65,11 @@ vimperator.Hints = function() //{{{
var elem = valid_hints[hintNumber - 1] || valid_hints[0]; var elem = valid_hints[hintNumber - 1] || valid_hints[0];
var elemTagName = elem.localName.toLowerCase(); var elemTagName = elem.localName.toLowerCase();
elem.focus(); elem.focus();
if (elemTagName == 'frame' || elemTagName == 'iframe') if (elemTagName == "frame" || elemTagName == "iframe")
return 0; return 0;
// for imagemap // for imagemap
if (elemTagName == 'area') if (elemTagName == "area")
{ {
var coords = elem.getAttribute("coords").split(","); var coords = elem.getAttribute("coords").split(",");
x = Number(coords[0]); x = Number(coords[0]);
@@ -78,12 +78,12 @@ vimperator.Hints = function() //{{{
var doc = window.content.document; var doc = window.content.document;
var view = window.document.defaultView; var view = window.document.defaultView;
var evt = doc.createEvent('MouseEvents'); var evt = doc.createEvent("MouseEvents");
evt.initMouseEvent('mousedown', true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null); evt.initMouseEvent("mousedown", true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
elem.dispatchEvent(evt); elem.dispatchEvent(evt);
var evt = doc.createEvent('MouseEvents'); var evt = doc.createEvent("MouseEvents");
evt.initMouseEvent('click', true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null); evt.initMouseEvent("click", true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
elem.dispatchEvent(evt); elem.dispatchEvent(evt);
return true; return true;
@@ -97,7 +97,7 @@ vimperator.Hints = function() //{{{
var elem = valid_hints[hintNumber - 1] || valid_hints[0]; var elem = valid_hints[hintNumber - 1] || valid_hints[0];
var doc = window.content.document; var doc = window.content.document;
var elemTagName = elem.localName.toLowerCase(); var elemTagName = elem.localName.toLowerCase();
if (elemTagName == 'frame' || elemTagName == 'iframe') if (elemTagName == "frame" || elemTagName == "iframe")
{ {
elem.contentWindow.focus(); elem.contentWindow.focus();
return; return;
@@ -107,18 +107,18 @@ vimperator.Hints = function() //{{{
elem.focus(); elem.focus();
} }
var evt = doc.createEvent('MouseEvents'); var evt = doc.createEvent("MouseEvents");
var x = 0; var x = 0;
var y = 0; var y = 0;
// for imagemap // for imagemap
if (elemTagName == 'area') if (elemTagName == "area")
{ {
var coords = elem.getAttribute("coords").split(","); var coords = elem.getAttribute("coords").split(",");
x = Number(coords[0]); x = Number(coords[0]);
y = Number(coords[1]); y = Number(coords[1]);
} }
evt.initMouseEvent('mouseover', true, true, doc.defaultView, 1, x, y, 0, 0, 0, 0, 0, 0, 0, null); evt.initMouseEvent("mouseover", true, true, doc.defaultView, 1, x, y, 0, 0, 0, 0, 0, 0, 0, null);
elem.dispatchEvent(evt); elem.dispatchEvent(evt);
} }
@@ -492,7 +492,7 @@ outer:
generate(); generate();
// get all keys from the input queue // get all keys from the input queue
var mt = Components.classes['@mozilla.org/thread-manager;1'].getService().mainThread; var mt = Components.classes["@mozilla.org/thread-manager;1"].getService().mainThread;
while (mt.hasPendingEvents()) while (mt.hasPendingEvents())
mt.processNextEvent(true); mt.processNextEvent(true);

View File

@@ -49,7 +49,7 @@ vimperator.IO = function()
// TODO: proper pathname separator translation like Vim // TODO: proper pathname separator translation like Vim
if (WINDOWS) if (WINDOWS)
path = path.replace('/', '\\', 'g'); path = path.replace("/", "\\", "g");
// expand "~" to VIMPERATOR_HOME or HOME (USERPROFILE or HOMEDRIVE\HOMEPATH on Windows if HOME is not set) // expand "~" to VIMPERATOR_HOME or HOME (USERPROFILE or HOMEDRIVE\HOMEPATH on Windows if HOME is not set)
if (/^~/.test(path)) if (/^~/.test(path))

View File

@@ -549,7 +549,7 @@ vimperator.Mappings = function() //{{{
flags: vimperator.Mappings.flags.COUNT flags: vimperator.Mappings.flags.COUNT
} }
)); ));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ['<C-^>', '<C-6>'], addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["<C-^>", "<C-6>"],
function() function()
{ {
if (vimperator.tabs.getTab() == vimperator.tabs.alternate) if (vimperator.tabs.getTab() == vimperator.tabs.alternate)
@@ -572,7 +572,7 @@ vimperator.Mappings = function() //{{{
}, },
{ {
short_help: "Select the alternate tab", short_help: "Select the alternate tab",
usage: ['<C-^>'], usage: ["<C-^>"],
help: "The alternate tab is the last selected tab. This provides a quick method of toggling between two tabs." help: "The alternate tab is the last selected tab. This provides a quick method of toggling between two tabs."
} }
)); ));
@@ -1209,14 +1209,14 @@ vimperator.Mappings = function() //{{{
// } // }
// )); // ));
// addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], [","], // addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], [","],
// function() { vimperator.input.buffer += ','; vimperator.hints.setCurrentState(0); }, // function() { vimperator.input.buffer += ","; vimperator.hints.setCurrentState(0); },
// { // {
// cancel_mode: false, // cancel_mode: false,
// always_active: true // always_active: true
// } // }
// )); // ));
// addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], [":"], // addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], [":"],
// function() { vimperator.commandline.open(':', '', vimperator.modes.EX); }, // function() { vimperator.commandline.open(":", "", vimperator.modes.EX); },
// { // {
// cancel_mode: false, // cancel_mode: false,
// always_active: true // always_active: true
@@ -1305,14 +1305,14 @@ vimperator.Mappings = function() //{{{
// //
// // tab management // // tab management
// addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], ["<C-n>"], // addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], ["<C-n>"],
// function() { vimperator.tabs.select('+1', true); }, // function() { vimperator.tabs.select("+1", true); },
// { // {
// cancel_mode: true, // cancel_mode: true,
// always_active: true // always_active: true
// } // }
// )); // same as gt, but no count supported // )); // same as gt, but no count supported
// addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], ["<C-p>"], // addDefaultMap(new vimperator.Map([vimperator.modes.HINTS], ["<C-p>"],
// function() { vimperator.tabs.select('-1', true); }, // function() { vimperator.tabs.select("-1", true); },
// { // {
// cancel_mode: true, // cancel_mode: true,
// always_active: true // always_active: true

View File

@@ -296,14 +296,14 @@ vimperator.Options = function() //{{{
// //
// work around firefox popup blocker // work around firefox popup blocker
var popup_allowed_events = loadPreference('dom.popup_allowed_events', 'change click dblclick mouseup reset submit'); var popup_allowed_events = loadPreference("dom.popup_allowed_events", "change click dblclick mouseup reset submit");
if (!popup_allowed_events.match("keypress")) if (!popup_allowed_events.match("keypress"))
storePreference('dom.popup_allowed_events', popup_allowed_events + " keypress"); storePreference("dom.popup_allowed_events", popup_allowed_events + " keypress");
// TODO: shouldn't we be resetting these in destroy() as well? // TODO: shouldn't we be resetting these in destroy() as well?
// we have our own typeahead find implementation // we have our own typeahead find implementation
storePreference('accessibility.typeaheadfind.autostart', false); storePreference("accessibility.typeaheadfind.autostart", false);
storePreference('accessibility.typeaheadfind', false); // actually the above setting should do it, but has no effect in firefox storePreference("accessibility.typeaheadfind", false); // actually the above setting should do it, but has no effect in firefox
// start with saved session // start with saved session
storePreference("browser.startup.page", 3); storePreference("browser.startup.page", 3);
@@ -337,9 +337,9 @@ vimperator.Options = function() //{{{
this.destroy = function() this.destroy = function()
{ {
// reset some modified firefox prefs // reset some modified firefox prefs
if (loadPreference('dom.popup_allowed_events', 'change click dblclick mouseup reset submit') if (loadPreference("dom.popup_allowed_events", "change click dblclick mouseup reset submit")
== popup_allowed_events + " keypress") == popup_allowed_events + " keypress")
storePreference('dom.popup_allowed_events', popup_allowed_events); storePreference("dom.popup_allowed_events", popup_allowed_events);
} }
this.list = function(only_non_default) this.list = function(only_non_default)

View File

@@ -99,11 +99,11 @@ vimperator.CommandLine = function() //{{{
var completion_index = UNINITIALIZED; var completion_index = UNINITIALIZED;
// the containing box for the prompt_widget and command_widget // the containing box for the prompt_widget and command_widget
var commandline_widget = document.getElementById('vimperator-commandline'); var commandline_widget = document.getElementById("vimperator-commandline");
// the prompt for the current command, for example : or /. Can be blank // the prompt for the current command, for example : or /. Can be blank
var prompt_widget = document.getElementById('vimperator-commandline-prompt'); var prompt_widget = document.getElementById("vimperator-commandline-prompt");
// the command bar which contains the current command // the command bar which contains the current command
var command_widget = document.getElementById('vimperator-commandline-command'); var command_widget = document.getElementById("vimperator-commandline-command");
// the widget used for multiline output // the widget used for multiline output
var multiline_output_widget = document.getElementById("vimperator-multiline-output"); var multiline_output_widget = document.getElementById("vimperator-multiline-output");
@@ -509,11 +509,11 @@ vimperator.CommandLine = function() //{{{
var longest = false; var longest = false;
var full = false; var full = false;
var wildtype = wim[wild_index++] || wim[wim.length - 1]; var wildtype = wim[wild_index++] || wim[wim.length - 1];
if (wildtype == 'list' || wildtype == 'list:full' || wildtype == 'list:longest') if (wildtype == "list" || wildtype == "list:full" || wildtype == "list:longest")
has_list = true; has_list = true;
if (wildtype == 'longest' || wildtype == 'list:longest') if (wildtype == "longest" || wildtype == "list:longest")
longest = true; longest = true;
else if (wildtype == 'full' || wildtype == 'list:full') else if (wildtype == "full" || wildtype == "list:full")
full = true; full = true;
// show the list // show the list

View File

@@ -101,7 +101,7 @@ vimperator.util = {
var matches; var matches;
// strip each 'URL' - makes things simpler later on // strip each 'URL' - makes things simpler later on
urls[url] = urls[url].replace(/^\s+/, '').replace(/\s+$/, ''); urls[url] = urls[url].replace(/^\s+/, "").replace(/\s+$/, "");
// FIXME: not really that good (doesn't handle .. in the middle) // FIXME: not really that good (doesn't handle .. in the middle)
// check for ./ and ../ (or even .../) to go to a file in the upper directory // check for ./ and ../ (or even .../) to go to a file in the upper directory

View File

@@ -33,9 +33,9 @@ const vimperator = (function() //{{{
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
// our services // our services
var sound_service = Components.classes['@mozilla.org/sound;1'] var sound_service = Components.classes["@mozilla.org/sound;1"]
.getService(Components.interfaces.nsISound); .getService(Components.interfaces.nsISound);
var console_service = Components.classes['@mozilla.org/consoleservice;1'] var console_service = Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService); .getService(Components.interfaces.nsIConsoleService);
var environment_service = Components.classes["@mozilla.org/process/environment;1"] var environment_service = Components.classes["@mozilla.org/process/environment;1"]
.getService(Components.interfaces.nsIEnvironment); .getService(Components.interfaces.nsIEnvironment);
@@ -126,7 +126,7 @@ const vimperator = (function() //{{{
if (!modifiers) if (!modifiers)
modifiers = {}; modifiers = {};
var [count, cmd, special, args] = vimperator.commands.parseCommand(str.replace(/^'(.*)'$/, '$1')); var [count, cmd, special, args] = vimperator.commands.parseCommand(str.replace(/^'(.*)'$/, "$1"));
var command = vimperator.commands.get(cmd); var command = vimperator.commands.get(cmd);
if (command === null) if (command === null)
@@ -292,7 +292,7 @@ const vimperator = (function() //{{{
if (typeof msg == "object") if (typeof msg == "object")
msg = this.objectToString(msg, false); msg = this.objectToString(msg, false);
console_service.logStringMessage('vimperator: ' + msg); console_service.logStringMessage("vimperator: " + msg);
}, },
// open one or more URLs // open one or more URLs