Fix minor bug in docsearch (check for sandboxed functions.)
This commit is contained in:
@@ -582,6 +582,7 @@ bool SourceDB::search_docs(const eng::string &substring, std::ostream &ostream)
|
|||||||
// Search the built-in functions.
|
// Search the built-in functions.
|
||||||
for (const LuaFunctionReg *reg = LuaFunctionReg::All; reg != nullptr; reg=reg->next()) {
|
for (const LuaFunctionReg *reg = LuaFunctionReg::All; reg != nullptr; reg=reg->next()) {
|
||||||
eng::string proto = get_reg_prototype(reg);
|
eng::string proto = get_reg_prototype(reg);
|
||||||
|
if (reg->get_sandbox()) continue;
|
||||||
if (sv::contains_substring_utf8(proto, substring) ||
|
if (sv::contains_substring_utf8(proto, substring) ||
|
||||||
sv::contains_substring_utf8(reg->get_docs(), substring)) {
|
sv::contains_substring_utf8(reg->get_docs(), substring)) {
|
||||||
ostream << proto;
|
ostream << proto;
|
||||||
|
|||||||
Reference in New Issue
Block a user