refactor: remove unnecessary allocation for "run Nvim with -V1" (#32633)

This commit is contained in:
zeertzjq
2025-02-26 13:55:29 +08:00
committed by GitHub
parent a2b464944a
commit f4bb7417b7
2 changed files with 5 additions and 10 deletions

View File

@@ -8038,6 +8038,8 @@ void last_set_msg(sctx_T script_ctx)
if (script_ctx.sc_lnum > 0) {
msg_puts(_(line_msg));
msg_outnum(script_ctx.sc_lnum);
} else if (script_is_lua(script_ctx.sc_sid)) {
msg_puts(_(" (run Nvim with -V1 for more details)"));
}
if (should_free) {
xfree(p);