mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:37:57 +01:00
whitespace fixes
This commit is contained in:
@@ -759,7 +759,7 @@ function Commands() //{{{
|
|||||||
{
|
{
|
||||||
if (/^custom,/.test(completeOpt))
|
if (/^custom,/.test(completeOpt))
|
||||||
completeFunc = completeOpt.substr(7);
|
completeFunc = completeOpt.substr(7);
|
||||||
else
|
else
|
||||||
completeFunc = "completion." + completeOptionMap[completeOpt];
|
completeFunc = "completion." + completeOptionMap[completeOpt];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1222,7 +1222,7 @@ function Completion() //{{{
|
|||||||
<span highlight="Indicator" style="display: inline-block; width: 1.5em; text-align: center">{item.item.indicator}</span>
|
<span highlight="Indicator" style="display: inline-block; width: 1.5em; text-align: center">{item.item.indicator}</span>
|
||||||
{ 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 = " ";
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ function AutoCommands() //{{{
|
|||||||
completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]);
|
completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
__iterator__: function () util.Array.iterator(store),
|
__iterator__: function () util.Array.iterator(store),
|
||||||
|
|||||||
@@ -120,9 +120,9 @@ function IO() //{{{
|
|||||||
if (path.exists() && path.normalize)
|
if (path.exists() && path.normalize)
|
||||||
path.normalize();
|
path.normalize();
|
||||||
}
|
}
|
||||||
catch(e)
|
catch (e)
|
||||||
{
|
{
|
||||||
return { exists: function () false, __noSuchMethod__: function () { throw e } };
|
return { exists: function () false, __noSuchMethod__: function () { throw e; } };
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ const liberator = (function () //{{{
|
|||||||
"Allow reading of an RC file in the current directory",
|
"Allow reading of an RC file in the current directory",
|
||||||
"boolean", false);
|
"boolean", false);
|
||||||
|
|
||||||
|
|
||||||
const groups = {
|
const groups = {
|
||||||
config: {
|
config: {
|
||||||
opts: config.guioptions,
|
opts: config.guioptions,
|
||||||
|
|||||||
@@ -569,7 +569,7 @@ function Options() //{{{
|
|||||||
reset = (postfix == "&");
|
reset = (postfix == "&");
|
||||||
invertBoolean = (postfix == "!");
|
invertBoolean = (postfix == "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name == "all" && reset)
|
if (name == "all" && reset)
|
||||||
liberator.echoerr("You can't reset all options, it could make " + config.hostApplication + " unusable.");
|
liberator.echoerr("You can't reset all options, it could make " + config.hostApplication + " unusable.");
|
||||||
else if (name == "all")
|
else if (name == "all")
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ function CommandLine() //{{{
|
|||||||
PAGE_DOWN: {},
|
PAGE_DOWN: {},
|
||||||
RESET: null,
|
RESET: null,
|
||||||
|
|
||||||
get completion()
|
get completion()
|
||||||
{
|
{
|
||||||
let str = commandline.command;
|
let str = commandline.command;
|
||||||
return str.substring(this.prefix.length, str.length - this.suffix.length);
|
return str.substring(this.prefix.length, str.length - this.suffix.length);
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ if (liberator.options.getPref("extensions.vimperator.commandline_cmd_history"))
|
|||||||
store = liberator.storage["quickmarks"];
|
store = liberator.storage["quickmarks"];
|
||||||
pref = liberator.options.getPref("extensions.vimperator.quickmarks")
|
pref = liberator.options.getPref("extensions.vimperator.quickmarks")
|
||||||
.split("\n");
|
.split("\n");
|
||||||
while(pref.length > 0)
|
while (pref.length > 0)
|
||||||
store.set(pref.shift(), pref.shift());
|
store.set(pref.shift(), pref.shift());
|
||||||
|
|
||||||
liberator.options.resetPref("extensions.vimperator.commandline_cmd_history");
|
liberator.options.resetPref("extensions.vimperator.commandline_cmd_history");
|
||||||
liberator.options.resetPref("extensions.vimperator.commandline_search_history");
|
liberator.options.resetPref("extensions.vimperator.commandline_search_history");
|
||||||
liberator.options.resetPref("extensions.vimperator.quickmarks");
|
liberator.options.resetPref("extensions.vimperator.quickmarks");
|
||||||
|
|||||||
Reference in New Issue
Block a user