aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-02 05:48:12 +0800
committerGitHub <noreply@github.com>2023-07-01 14:48:12 -0700
commitdb590e96d59381f873747e888c9afe3c6378678c (patch)
treeed6197a35bdeda1b3ba8f9806953f4cdd5fef05b /src
parentff8e3c6039d50bdbc5b19ac468b77567cb79d04a (diff)
downloadrneovim-db590e96d59381f873747e888c9afe3c6378678c.tar.gz
rneovim-db590e96d59381f873747e888c9afe3c6378678c.tar.bz2
rneovim-db590e96d59381f873747e888c9afe3c6378678c.zip
fix(startup)!: "nvim -l" message does not end with newline #24215
Close #24180
Diffstat (limited to 'src')
-rw-r--r--src/nvim/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 481172e040..567d364284 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -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);
}