Skip to content

Commit

Permalink
[core] Make console lua repl more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Feb 11, 2025
1 parent 9655b00 commit 0cff017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/console_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ConsoleService::ConsoleService()
// Remove "lua" from the front of the inputs
inputs = std::vector<std::string>(inputs.begin() + 1, inputs.end());

auto input = fmt::format("local var = {}; if type(var) ~= \"nil\" then print(var) end", fmt::join(inputs, " "));
auto input = fmt::format("{}", fmt::join(inputs, " "));
lua.safe_script(input);
}
});
Expand Down

0 comments on commit 0cff017

Please sign in to comment.