1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 13:44:12 +01:00

delay user-command custom completer evaluation until call time

This commit is contained in:
Doug Kearns
2008-12-17 17:26:15 +11:00
parent acb556d111
commit 58514ffd4f
2 changed files with 18 additions and 11 deletions

View File

@@ -323,9 +323,9 @@ Completion can be enabled by specifying one of the following arguments to the
Custom completion
Custom completion can be provided by specifying the "custom,{func}" argument to
-complete. The {func} is called with to arguments, a completion context, and
-complete. The {func} is called with two arguments, a completion context, and
an an object describing the command's arguments. It should set the context's
'completions' property, or return an object, with 'start' and 'items'
\'completions' property, or return an object, with \'start' and \'items'
properties, describing the completions and where the replacement is to start.
*start* is the index into the word being completed at which the returned values