Skip to content
Snippets Groups Projects
Commit 7817fc13 authored by Sergey Ostanevich's avatar Sergey Ostanevich Committed by Vladimir Davydov
Browse files

console: introduce __autocomplete metamethod

This patch updates the logic in lua_rl_complete() where __index from
a metatable apparently expected to be a table, not a function. It is
rather simple for a table object, but some of them are userdata, so
an __autocomplete method is introduced to be sure it returns a table
with all names suitable for tabcompletion.

Part of #6305
NO_DOC=internal
NO_CHANGELOG=part of a fix
parent b9f6d385
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment