mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 15:28:00 +01:00
whitespace fixes
This commit is contained in:
@@ -759,7 +759,7 @@ function Commands() //{{{
|
||||
{
|
||||
if (/^custom,/.test(completeOpt))
|
||||
completeFunc = completeOpt.substr(7);
|
||||
else
|
||||
else
|
||||
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>
|
||||
{ process.call(this, item, text) }
|
||||
</>];
|
||||
|
||||
|
||||
|
||||
context.completions = util.map(tabs.browsers, function ([i, browser]) {
|
||||
let indicator = " ";
|
||||
|
||||
@@ -171,7 +171,6 @@ function AutoCommands() //{{{
|
||||
completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]);
|
||||
});
|
||||
|
||||
|
||||
return {
|
||||
|
||||
__iterator__: function () util.Array.iterator(store),
|
||||
|
||||
@@ -120,9 +120,9 @@ function IO() //{{{
|
||||
if (path.exists() && 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;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,6 @@ const liberator = (function () //{{{
|
||||
"Allow reading of an RC file in the current directory",
|
||||
"boolean", false);
|
||||
|
||||
|
||||
const groups = {
|
||||
config: {
|
||||
opts: config.guioptions,
|
||||
|
||||
@@ -569,7 +569,7 @@ function Options() //{{{
|
||||
reset = (postfix == "&");
|
||||
invertBoolean = (postfix == "!");
|
||||
}
|
||||
|
||||
|
||||
if (name == "all" && reset)
|
||||
liberator.echoerr("You can't reset all options, it could make " + config.hostApplication + " unusable.");
|
||||
else if (name == "all")
|
||||
|
||||
@@ -177,7 +177,7 @@ function CommandLine() //{{{
|
||||
PAGE_DOWN: {},
|
||||
RESET: null,
|
||||
|
||||
get completion()
|
||||
get completion()
|
||||
{
|
||||
let str = commandline.command;
|
||||
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"];
|
||||
pref = liberator.options.getPref("extensions.vimperator.quickmarks")
|
||||
.split("\n");
|
||||
while(pref.length > 0)
|
||||
while (pref.length > 0)
|
||||
store.set(pref.shift(), pref.shift());
|
||||
|
||||
|
||||
liberator.options.resetPref("extensions.vimperator.commandline_cmd_history");
|
||||
liberator.options.resetPref("extensions.vimperator.commandline_search_history");
|
||||
liberator.options.resetPref("extensions.vimperator.quickmarks");
|
||||
|
||||
Reference in New Issue
Block a user