mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:07:58 +01:00
brace formatting fixes
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))];
|
||||
},
|
||||
|
||||
@@ -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 [
|
||||
{
|
||||
|
||||
@@ -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]] = {
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user