1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-03 17:35:46 +01:00

Whitespace fixes.

This commit is contained in:
Doug Kearns
2009-01-11 14:07:10 +11:00
parent f5e2a671e8
commit 9729969d8b
9 changed files with 12 additions and 14 deletions

View File

@@ -1388,7 +1388,6 @@ function Completion() //{{{
{ process.call(this, item, text) }
</>];
context.completions = util.map(tabs.browsers, function ([i, browser]) {
let indicator = " ";
if (i == tabs.index())

View File

@@ -630,7 +630,7 @@ function Events() //{{{
// load all macros inside ~/.vimperator/macros/
// setTimeout needed since io. is loaded after events.
setTimeout (function () {
setTimeout(function () {
try
{
let dirs = io.getRuntimeDirectories("macros");
@@ -879,7 +879,7 @@ function Events() //{{{
* Pushes keys into the event queue from liberator it is similar to
* Vim's feedkeys() method, but cannot cope with 2 partially-fed
* strings, you have to feed one parsable string.
*
*
* @param {string} keys A string like "2<C-f>" to pass if you want "<"
* to be taken literally, prepend it with a "\\".
* @param {boolean} noremap Allow recursive mappings.

View File

@@ -88,7 +88,7 @@ function Hints() //{{{
{
buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB);
// TODO: Maybe we find a *simple* way to keep the hints displayed rather than
// TODO: Maybe we find a *simple* way to keep the hints displayed rather than
// showing them again, or is this short flash actually needed as a "usability
// feature"? --mst
hints.show("F");

View File

@@ -727,7 +727,7 @@ function IO() //{{{
* @param {number} perms The file mode bits of the created file. This
* is only used when creating a new file and does not change
* permissions if the file exists.
* @default 0644
* @default 0644
*/
writeFile: function (file, buf, mode, perms)
{

View File

@@ -247,7 +247,8 @@ const modes = (function () //{{{
set isReplaying(value) { isReplaying = value; this.show(); },
get main() main,
set main(value) {
set main(value)
{
if (value != main)
handleModeChange(main, value);

View File

@@ -685,7 +685,6 @@ function CommandLine() //{{{
let output = util.xmlToDom(lastMowOutput, doc);
XML.ignoreWhitespace = true;
// FIXME: need to make sure an open MOW is closed when commands
// that don't generate output are executed
if (outputContainer.collapsed)
@@ -988,7 +987,8 @@ function CommandLine() //{{{
get mode() (modes.extended == modes.EX) ? "cmd" : "search",
get silent() silent,
set silent(val) {
set silent(val)
{
silent = val;
if (silent)
storage.styles.addSheet(true, "silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }");
@@ -1098,7 +1098,6 @@ function CommandLine() //{{{
keepCommand = false;
},
/**
* Hides the command-line, and shows any status messages that
* are under it.

View File

@@ -47,8 +47,8 @@ ChromeData.prototype = {
defaultPort: -1,
allowPort: function (port, scheme) false,
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
| nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
| nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
newURI: function (spec, charset, baseURI)
{

View File

@@ -47,8 +47,8 @@ ChromeData.prototype = {
defaultPort: -1,
allowPort: function (port, scheme) false,
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
| nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
| nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
newURI: function (spec, charset, baseURI)
{

View File

@@ -94,7 +94,6 @@ function getBufferPosition()
function getLocation() window.content.document.location.href;
function echoLine(str, group)
{
if (!doc)