mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58:00 +01:00
Fix some completion bugs
This commit is contained in:
@@ -1080,12 +1080,12 @@ function Completion() //{{{
|
||||
if (args)
|
||||
{
|
||||
// XXX, XXX, XXX
|
||||
let argContext = context.fork("args", args.completeStart);
|
||||
compObject = command.completer.call(command, context, args, special, count);
|
||||
if (compObject instanceof Array) // for now at least, let completion functions return arrays instead of objects
|
||||
compObject = { start: compObject[0], items: compObject[1] };
|
||||
if (args.completions)
|
||||
{
|
||||
let argContext = context.fork("args", args.completionStart);
|
||||
argContext.title = [args.completeOpt || "Options"];
|
||||
argContext.items = args.completions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user