mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:17:59 +01:00
allow hints to function on pages where authorStyleDisabled has been set via means other than 'usermode'
This commit is contained in:
@@ -764,7 +764,9 @@ function Commands() //{{{
|
||||
else
|
||||
func = "completion." + completeOptionMap[completeOpt];
|
||||
|
||||
completeFunc = eval(func);
|
||||
//completeFunc = eval(func);
|
||||
completeFunc = func;
|
||||
liberator.log(func)
|
||||
}
|
||||
|
||||
if (!commands.addUserCommand(
|
||||
@@ -775,7 +777,9 @@ function Commands() //{{{
|
||||
argCount: nargsOpt,
|
||||
bang: bangOpt,
|
||||
count: countOpt,
|
||||
completer: completeFunc,
|
||||
// TODO: handle missing function
|
||||
//completer: completeFunc,
|
||||
completer: function (context, args) eval(completeFunc + "(context, args)"),
|
||||
replacementText: args.literalArg
|
||||
},
|
||||
args.bang)
|
||||
|
||||
Reference in New Issue
Block a user