diff options
-rw-r--r-- | common/content/commands.js | 3 | ||||
-rw-r--r-- | common/content/completion.js | 3 | ||||
-rw-r--r-- | common/content/hints.js | 6 | ||||
-rw-r--r-- | common/content/mappings.js | 3 | ||||
-rw-r--r-- | common/content/modes.js | 5 | ||||
-rw-r--r-- | common/content/style.js | 6 |
6 files changed, 17 insertions, 9 deletions
diff --git a/common/content/commands.js b/common/content/commands.js index 67540eb9..73beca92 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -792,7 +792,8 @@ function Commands() //{{{ argCount: nargsOpt, bang: bangOpt, count: countOpt, - completer: function (context, args) { + completer: function (context, args) + { if (completeFunc) return completeFunc(context, args) }, diff --git a/common/content/completion.js b/common/content/completion.js index 1ce28900..f9ddee03 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1552,7 +1552,8 @@ function Completion() //{{{ }); completionService.stopSearch(); completionService.startSearch(context.filter, "", context.result, { - onSearchResult: function onSearchResult(search, result) { + onSearchResult: function onSearchResult(search, result) + { context.result = result; timer.tell(result); if (result.searchResult <= result.RESULT_SUCCESS) diff --git a/common/content/hints.js b/common/content/hints.js index ca55ac9a..55e8f043 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -581,12 +581,14 @@ function Hints() //{{{ mappings.add(myModes, [";"], "Start an extended hint mode", - function (count) { + function (count) + { extendedhintCount = count; commandline.input(";", function (arg) { setTimeout(function () hints.show(arg), 0) }, { promptHighlight: "Normal", - completer: function (context) { + completer: function (context) + { context.compare = function () 0; context.completions = [[k, v.prompt] for ([k, v] in Iterator(hintModes))]; }, diff --git a/common/content/mappings.js b/common/content/mappings.js index 13bb318a..7e35b115 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -190,7 +190,8 @@ function Mappings() //{{{ [["<silent>", "<Silent>"], commands.OPTION_NOARG] ], literal: 1, - serial: function () { + serial: function () + { let noremap = this.name.indexOf("noremap") > -1; return [ { diff --git a/common/content/modes.js b/common/content/modes.js index b016048b..0159dd24 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -125,7 +125,7 @@ const modes = (function () //{{{ /////////////////////////////////////////////////////////////////////////////{{{ var self = { - NONE: 0, + NONE: 0, __iterator__: function () util.Array.iterator(this.all), @@ -133,7 +133,8 @@ const modes = (function () //{{{ get inputMode() main & (this.COMMAND_LINE | this.INPUT | this.TEXTAREA | this.COMPOSE), - addMode: function (name, extended, display) { + addMode: function (name, extended, display) + { let disp = name.replace("_", " ", "g"); this[name] = 1 << lastMode++; modeMap[name] = modeMap[this[name]] = { diff --git a/common/content/style.js b/common/content/style.js index ea4b5533..ca9f0f1c 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -504,7 +504,8 @@ liberator.registerObserver("load_commands", function () }, { bang: true, - completer: function (context, args) { + completer: function (context, args) + { let compl = []; if (args.completeArg == 0) { @@ -541,7 +542,8 @@ liberator.registerObserver("load_commands", function () commands.add(["dels[tyle]"], "Remove a user stylesheet", - function (args) { + function (args) + { styles.removeSheet(args["-name"], args[0], args.literalArg, args["-index"], false); }, { |