diff --git a/common/content/commands.js b/common/content/commands.js index c5d7c3ae..ff67557e 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -759,7 +759,7 @@ function Commands() //{{{ { if (/^custom,/.test(completeOpt)) completeFunc = completeOpt.substr(7); - else + else completeFunc = "completion." + completeOptionMap[completeOpt]; } diff --git a/common/content/completion.js b/common/content/completion.js index bc81887f..f008e7ff 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1222,7 +1222,7 @@ function Completion() //{{{ {item.item.indicator} { process.call(this, item, text) } ]; - + context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; diff --git a/common/content/events.js b/common/content/events.js index 87dc2617..3eadb398 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -171,7 +171,6 @@ function AutoCommands() //{{{ completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]); }); - return { __iterator__: function () util.Array.iterator(store), diff --git a/common/content/io.js b/common/content/io.js index 427a9a2a..0e749456 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -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; } diff --git a/common/content/liberator.js b/common/content/liberator.js index 6b009c12..ab6c9b9f 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -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, diff --git a/common/content/options.js b/common/content/options.js index 34828e18..ed2887f5 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -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") diff --git a/common/content/ui.js b/common/content/ui.js index 89e5009a..eb3e6c9f 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -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); diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 4926cea4..8961f2fc 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -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");