mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:37:59 +01:00
whitespace fixes
This commit is contained in:
@@ -996,7 +996,7 @@ function QuickMarks() //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let items = ({title: mark, url: qmarks.get(mark)} for each (mark in marks));
|
let items = ({ title: mark, url: qmarks.get(mark) } for each (mark in marks));
|
||||||
let list = template.bookmarks("QuickMark", items);
|
let list = template.bookmarks("QuickMark", items);
|
||||||
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
|
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ function Completion() //{{{
|
|||||||
completer = obj[func].liberatorCompleter;
|
completer = obj[func].liberatorCompleter;
|
||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
liberator.dump({call: completer, func: func, obj: obj, string: string, args: "args"});
|
liberator.dump({ call: completer, func: func, obj: obj, string: string, args: "args" });
|
||||||
if (!completer)
|
if (!completer)
|
||||||
return [0, []];
|
return [0, []];
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ function AutoCommands() //{{{
|
|||||||
if (!autocommands.get(event).some(function (c) c.pattern.test(url)))
|
if (!autocommands.get(event).some(function (c) c.pattern.test(url)))
|
||||||
liberator.echo("No matching autocommands");
|
liberator.echo("No matching autocommands");
|
||||||
else
|
else
|
||||||
autocommands.trigger(event, {url: url});
|
autocommands.trigger(event, { url: url });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -187,7 +187,7 @@ function AutoCommands() //{{{
|
|||||||
liberator.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
|
liberator.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
|
||||||
}
|
}
|
||||||
events.forEach(function (event)
|
events.forEach(function (event)
|
||||||
store.push({event: event, pattern: RegExp(regex), command: cmd}));
|
store.push({ event: event, pattern: RegExp(regex), command: cmd }));
|
||||||
},
|
},
|
||||||
|
|
||||||
get: function (event, regex)
|
get: function (event, regex)
|
||||||
@@ -862,7 +862,7 @@ function Events() //{{{
|
|||||||
var wasFeeding = this.feedingKeys;
|
var wasFeeding = this.feedingKeys;
|
||||||
this.feedingKeys = true;
|
this.feedingKeys = true;
|
||||||
var wasSilent = commandline.silent;
|
var wasSilent = commandline.silent;
|
||||||
if(silent)
|
if (silent)
|
||||||
commandline.silent = silent;
|
commandline.silent = silent;
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -937,7 +937,7 @@ function Events() //{{{
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
this.feedingKeys = wasFeeding;
|
this.feedingKeys = wasFeeding;
|
||||||
if(silent)
|
if (silent)
|
||||||
commandline.silent = wasSilent;
|
commandline.silent = wasSilent;
|
||||||
}
|
}
|
||||||
return i == keys.length;
|
return i == keys.length;
|
||||||
@@ -1513,7 +1513,7 @@ function Events() //{{{
|
|||||||
buffer.loaded = 0;
|
buffer.loaded = 0;
|
||||||
statusline.updateProgress(0);
|
statusline.updateProgress(0);
|
||||||
|
|
||||||
autocommands.trigger("PageLoadPre", {url: buffer.URL});
|
autocommands.trigger("PageLoadPre", { url: buffer.URL });
|
||||||
|
|
||||||
// don't reset mode if a frame of the frameset gets reloaded which
|
// don't reset mode if a frame of the frameset gets reloaded which
|
||||||
// is not the focused frame
|
// is not the focused frame
|
||||||
@@ -1555,7 +1555,7 @@ function Events() //{{{
|
|||||||
statusline.updateUrl();
|
statusline.updateUrl();
|
||||||
statusline.updateProgress();
|
statusline.updateProgress();
|
||||||
|
|
||||||
autocommands.trigger("LocationChange", {url: buffer.URL});
|
autocommands.trigger("LocationChange", { url: buffer.URL });
|
||||||
|
|
||||||
// if this is not delayed we get the position of the old buffer
|
// if this is not delayed we get the position of the old buffer
|
||||||
setTimeout(function () { statusline.updateBufferPosition(); }, 100);
|
setTimeout(function () { statusline.updateBufferPosition(); }, 100);
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||||
function load(script) {
|
function load(script)
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
loader.loadSubScript(BASE + script, modules)
|
loader.loadSubScript(BASE + script, modules)
|
||||||
@@ -42,3 +43,4 @@
|
|||||||
|
|
||||||
})()
|
})()
|
||||||
|
|
||||||
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function Mail() //{{{
|
|||||||
if (folder)
|
if (folder)
|
||||||
{
|
{
|
||||||
var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);
|
var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);
|
||||||
autocommands.trigger("FolderLoaded", {url: msgFolder});
|
autocommands.trigger("FolderLoaded", { url: msgFolder });
|
||||||
|
|
||||||
// Jump to a message when requested
|
// Jump to a message when requested
|
||||||
var indices = [];
|
var indices = [];
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ function CommandLine() //{{{
|
|||||||
get silent() silent,
|
get silent() silent,
|
||||||
set silent(val) {
|
set silent(val) {
|
||||||
silent = val;
|
silent = val;
|
||||||
if(silent)
|
if (silent)
|
||||||
storage.styles.addSheet("silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }", true, true);
|
storage.styles.addSheet("silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }", true, true);
|
||||||
else
|
else
|
||||||
storage.styles.removeSheet("silent-mode", null, null, null, true);
|
storage.styles.removeSheet("silent-mode", null, null, null, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user