A small refactor to SourceDB to prepare for doc-search functionality

This commit is contained in:
2026-01-12 13:45:04 -05:00
parent bd53ba09a4
commit 4e374294b6
4 changed files with 43 additions and 28 deletions

View File

@@ -933,7 +933,7 @@ LuaDefine(doc, "function",
std::ostream *ostream = w->lthread_print_stream();
LuaArg func;
LuaDefStack LS(L, func);
eng::string doc = SourceDB::function_docs(LS, func);
eng::string doc = w->get_source().function_docs(LS, func);
if (doc == "") {
(*ostream) << "no doc found" << std::endl;
}