fix(startup)!: "nvim -l" message does not end with newline #24215

Close #24180
This commit is contained in:
zeertzjq
2023-07-02 05:48:12 +08:00
committed by GitHub
parent ff8e3c6039
commit db590e96d5
4 changed files with 28 additions and 13 deletions

View File

@@ -633,6 +633,10 @@ int main(int argc, char **argv)
msg_scroll = true;
bool lua_ok = nlua_exec_file(params.luaf);
TIME_MSG("executing Lua -l script");
if (msg_didout) {
msg_putchar('\n');
msg_didout = false;
}
getout(lua_ok ? 0 : 1);
}