1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 06:14:18 +01:00

Partially fix completions with mismatched start offsets

This commit is contained in:
Kris Maglione
2008-11-24 11:12:06 +00:00
parent 862a6cae7c
commit ced94146f8
3 changed files with 12 additions and 9 deletions

View File

@@ -488,7 +488,7 @@ liberator.registerObserver("load_commands", function ()
height: 1em !important; min-height: 1em !important; max-height: 1em !important;
overflow: hidden !important;
]]>;
let [key, css] = args.arguments[0];
let [key, css] = args.arguments;
if (!css && !(key && special))
{
let str = template.tabular(["Key", "Sample", "CSS"],
@@ -509,9 +509,11 @@ liberator.registerObserver("load_commands", function ()
argCount: 2,
bang: true,
// TODO: add this as a standard highlight completion function?
completer: function (context) [0,
completion.filter([[v.class, ""] for (v in highlight)], context.filter)
],
completer: function (context, args)
{
if (args.completeArg == 0)
context.completions = [[v.class, ""] for (v in highlight)];
},
hereDoc: true,
literal: true,
options: [[["-append", "-a"], commands.OPTION_NOARG]],