1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:47:59 +01:00

brace formatting fixes

This commit is contained in:
Doug Kearns
2008-12-19 19:07:17 +11:00
parent 6186ad27b4
commit 194aaf46eb
6 changed files with 17 additions and 9 deletions

View File

@@ -792,7 +792,8 @@ function Commands() //{{{
argCount: nargsOpt, argCount: nargsOpt,
bang: bangOpt, bang: bangOpt,
count: countOpt, count: countOpt,
completer: function (context, args) { completer: function (context, args)
{
if (completeFunc) if (completeFunc)
return completeFunc(context, args) return completeFunc(context, args)
}, },

View File

@@ -1552,7 +1552,8 @@ function Completion() //{{{
}); });
completionService.stopSearch(); completionService.stopSearch();
completionService.startSearch(context.filter, "", context.result, { completionService.startSearch(context.filter, "", context.result, {
onSearchResult: function onSearchResult(search, result) { onSearchResult: function onSearchResult(search, result)
{
context.result = result; context.result = result;
timer.tell(result); timer.tell(result);
if (result.searchResult <= result.RESULT_SUCCESS) if (result.searchResult <= result.RESULT_SUCCESS)

View File

@@ -581,12 +581,14 @@ function Hints() //{{{
mappings.add(myModes, [";"], mappings.add(myModes, [";"],
"Start an extended hint mode", "Start an extended hint mode",
function (count) { function (count)
{
extendedhintCount = count; extendedhintCount = count;
commandline.input(";", function (arg) { setTimeout(function () hints.show(arg), 0) }, commandline.input(";", function (arg) { setTimeout(function () hints.show(arg), 0) },
{ {
promptHighlight: "Normal", promptHighlight: "Normal",
completer: function (context) { completer: function (context)
{
context.compare = function () 0; context.compare = function () 0;
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hintModes))]; context.completions = [[k, v.prompt] for ([k, v] in Iterator(hintModes))];
}, },

View File

@@ -190,7 +190,8 @@ function Mappings() //{{{
[["<silent>", "<Silent>"], commands.OPTION_NOARG] [["<silent>", "<Silent>"], commands.OPTION_NOARG]
], ],
literal: 1, literal: 1,
serial: function () { serial: function ()
{
let noremap = this.name.indexOf("noremap") > -1; let noremap = this.name.indexOf("noremap") > -1;
return [ return [
{ {

View File

@@ -125,7 +125,7 @@ const modes = (function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
var self = { var self = {
NONE: 0, NONE: 0,
__iterator__: function () util.Array.iterator(this.all), __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), 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"); let disp = name.replace("_", " ", "g");
this[name] = 1 << lastMode++; this[name] = 1 << lastMode++;
modeMap[name] = modeMap[this[name]] = { modeMap[name] = modeMap[this[name]] = {

View File

@@ -504,7 +504,8 @@ liberator.registerObserver("load_commands", function ()
}, },
{ {
bang: true, bang: true,
completer: function (context, args) { completer: function (context, args)
{
let compl = []; let compl = [];
if (args.completeArg == 0) if (args.completeArg == 0)
{ {
@@ -541,7 +542,8 @@ liberator.registerObserver("load_commands", function ()
commands.add(["dels[tyle]"], commands.add(["dels[tyle]"],
"Remove a user stylesheet", "Remove a user stylesheet",
function (args) { function (args)
{
styles.removeSheet(args["-name"], args[0], args.literalArg, args["-index"], false); styles.removeSheet(args["-name"], args[0], args.literalArg, args["-index"], false);
}, },
{ {