fix(startup): don't truncate when printing with -l (#24216)

This commit is contained in:
zeertzjq
2023-07-01 08:16:34 +08:00
committed by GitHub
parent 2493815290
commit 628f6cce80
3 changed files with 24 additions and 3 deletions

View File

@@ -629,6 +629,8 @@ int main(int argc, char **argv)
}
if (params.luaf != NULL) {
// Like "--cmd", "+", "-c" and "-S", don't truncate messages.
msg_scroll = true;
bool lua_ok = nlua_exec_file(params.luaf);
TIME_MSG("executing Lua -l script");
getout(lua_ok ? 0 : 1);