mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 06:15:47 +01:00
Whitespace fixes.
This commit is contained in:
@@ -1388,7 +1388,6 @@ function Completion() //{{{
|
|||||||
{ process.call(this, item, text) }
|
{ process.call(this, item, text) }
|
||||||
</>];
|
</>];
|
||||||
|
|
||||||
|
|
||||||
context.completions = util.map(tabs.browsers, function ([i, browser]) {
|
context.completions = util.map(tabs.browsers, function ([i, browser]) {
|
||||||
let indicator = " ";
|
let indicator = " ";
|
||||||
if (i == tabs.index())
|
if (i == tabs.index())
|
||||||
|
|||||||
@@ -630,7 +630,7 @@ function Events() //{{{
|
|||||||
|
|
||||||
// load all macros inside ~/.vimperator/macros/
|
// load all macros inside ~/.vimperator/macros/
|
||||||
// setTimeout needed since io. is loaded after events.
|
// setTimeout needed since io. is loaded after events.
|
||||||
setTimeout (function () {
|
setTimeout(function () {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
let dirs = io.getRuntimeDirectories("macros");
|
let dirs = io.getRuntimeDirectories("macros");
|
||||||
@@ -879,7 +879,7 @@ function Events() //{{{
|
|||||||
* Pushes keys into the event queue from liberator it is similar to
|
* Pushes keys into the event queue from liberator it is similar to
|
||||||
* Vim's feedkeys() method, but cannot cope with 2 partially-fed
|
* Vim's feedkeys() method, but cannot cope with 2 partially-fed
|
||||||
* strings, you have to feed one parsable string.
|
* strings, you have to feed one parsable string.
|
||||||
*
|
*
|
||||||
* @param {string} keys A string like "2<C-f>" to pass if you want "<"
|
* @param {string} keys A string like "2<C-f>" to pass if you want "<"
|
||||||
* to be taken literally, prepend it with a "\\".
|
* to be taken literally, prepend it with a "\\".
|
||||||
* @param {boolean} noremap Allow recursive mappings.
|
* @param {boolean} noremap Allow recursive mappings.
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ function Hints() //{{{
|
|||||||
{
|
{
|
||||||
buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB);
|
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
|
// showing them again, or is this short flash actually needed as a "usability
|
||||||
// feature"? --mst
|
// feature"? --mst
|
||||||
hints.show("F");
|
hints.show("F");
|
||||||
|
|||||||
@@ -727,7 +727,7 @@ function IO() //{{{
|
|||||||
* @param {number} perms The file mode bits of the created file. This
|
* @param {number} perms The file mode bits of the created file. This
|
||||||
* is only used when creating a new file and does not change
|
* is only used when creating a new file and does not change
|
||||||
* permissions if the file exists.
|
* permissions if the file exists.
|
||||||
* @default 0644
|
* @default 0644
|
||||||
*/
|
*/
|
||||||
writeFile: function (file, buf, mode, perms)
|
writeFile: function (file, buf, mode, perms)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -247,7 +247,8 @@ const modes = (function () //{{{
|
|||||||
set isReplaying(value) { isReplaying = value; this.show(); },
|
set isReplaying(value) { isReplaying = value; this.show(); },
|
||||||
|
|
||||||
get main() main,
|
get main() main,
|
||||||
set main(value) {
|
set main(value)
|
||||||
|
{
|
||||||
if (value != main)
|
if (value != main)
|
||||||
handleModeChange(main, value);
|
handleModeChange(main, value);
|
||||||
|
|
||||||
|
|||||||
@@ -685,7 +685,6 @@ function CommandLine() //{{{
|
|||||||
let output = util.xmlToDom(lastMowOutput, doc);
|
let output = util.xmlToDom(lastMowOutput, doc);
|
||||||
XML.ignoreWhitespace = true;
|
XML.ignoreWhitespace = true;
|
||||||
|
|
||||||
|
|
||||||
// FIXME: need to make sure an open MOW is closed when commands
|
// FIXME: need to make sure an open MOW is closed when commands
|
||||||
// that don't generate output are executed
|
// that don't generate output are executed
|
||||||
if (outputContainer.collapsed)
|
if (outputContainer.collapsed)
|
||||||
@@ -988,7 +987,8 @@ function CommandLine() //{{{
|
|||||||
get mode() (modes.extended == modes.EX) ? "cmd" : "search",
|
get mode() (modes.extended == modes.EX) ? "cmd" : "search",
|
||||||
|
|
||||||
get silent() silent,
|
get silent() silent,
|
||||||
set silent(val) {
|
set silent(val)
|
||||||
|
{
|
||||||
silent = val;
|
silent = val;
|
||||||
if (silent)
|
if (silent)
|
||||||
storage.styles.addSheet(true, "silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }");
|
storage.styles.addSheet(true, "silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }");
|
||||||
@@ -1098,7 +1098,6 @@ function CommandLine() //{{{
|
|||||||
keepCommand = false;
|
keepCommand = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides the command-line, and shows any status messages that
|
* Hides the command-line, and shows any status messages that
|
||||||
* are under it.
|
* are under it.
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ ChromeData.prototype = {
|
|||||||
defaultPort: -1,
|
defaultPort: -1,
|
||||||
allowPort: function (port, scheme) false,
|
allowPort: function (port, scheme) false,
|
||||||
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
|
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
|
||||||
| nsIProtocolHandler.URI_NOAUTH
|
| nsIProtocolHandler.URI_NOAUTH
|
||||||
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
|
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
|
||||||
|
|
||||||
newURI: function (spec, charset, baseURI)
|
newURI: function (spec, charset, baseURI)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ ChromeData.prototype = {
|
|||||||
defaultPort: -1,
|
defaultPort: -1,
|
||||||
allowPort: function (port, scheme) false,
|
allowPort: function (port, scheme) false,
|
||||||
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
|
protocolFlags: nsIProtocolHandler.URI_NORELATIVE
|
||||||
| nsIProtocolHandler.URI_NOAUTH
|
| nsIProtocolHandler.URI_NOAUTH
|
||||||
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
|
| nsIProtocolHandler.URI_IS_UI_RESOURCE,
|
||||||
|
|
||||||
newURI: function (spec, charset, baseURI)
|
newURI: function (spec, charset, baseURI)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ function getBufferPosition()
|
|||||||
|
|
||||||
function getLocation() window.content.document.location.href;
|
function getLocation() window.content.document.location.href;
|
||||||
|
|
||||||
|
|
||||||
function echoLine(str, group)
|
function echoLine(str, group)
|
||||||
{
|
{
|
||||||
if (!doc)
|
if (!doc)
|
||||||
|
|||||||
Reference in New Issue
Block a user