Fix minor bug in docsearch (check for sandboxed functions.)

This commit is contained in:
2026-01-14 14:38:36 -05:00
parent 03e9928e03
commit d533a8da0e

View File

@@ -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;