You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example is not working. The length operator is used on the third output of the callback, here: prompt.lua:840. This suggests that the third output argument should be an array.
If I'm right the example should rather look like this:
localfunctionmy_completion_cb(command_before_comp, cur_pos_before_comp, ncomp)
localcompletion=command_before_comp.."foo"returncompletion, cur_pos_before_comp+3, {completion}
end
The text was updated successfully, but these errors were encountered:
The documentation here provides the following example of defining the
completion_callback
argument:This example is not working. The length operator is used on the third output of the callback, here:
prompt.lua:840
. This suggests that the third output argument should be an array.If I'm right the example should rather look like this:
The text was updated successfully, but these errors were encountered: