mirror of
https://github.com/neovim/neovim.git
synced 2026-06-25 20:55:30 +00:00
Merge pull request #26205 from jamessan/nlua_error-crash
fix(lua): crash in nlua_error
This commit is contained in:
@@ -135,8 +135,8 @@ static void nlua_error(lua_State *const lstate, const char *const msg)
|
||||
}
|
||||
|
||||
if (in_script) {
|
||||
os_errmsg(str);
|
||||
os_errmsg("\n");
|
||||
fprintf(stderr, msg, (int)len, str);
|
||||
fprintf(stderr, "\n");
|
||||
} else {
|
||||
msg_ext_set_kind("lua_error");
|
||||
semsg_multiline(msg, (int)len, str);
|
||||
|
||||
Reference in New Issue
Block a user