diff options
author | James McCoy <jamessan@jamessan.com> | 2021-11-01 11:27:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 11:27:42 -0400 |
commit | b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e (patch) | |
tree | d8fc27ffbbb9ece2b15008b09d4b4a6b89d0d20b /src/nvim/lua/executor.c | |
parent | 961cd83b3b39855b232841f37ded856c8621bd90 (diff) | |
parent | 9e479ea05e00e63ccc985fc8ce4912c709f30111 (diff) | |
download | rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.tar.gz rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.tar.bz2 rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.zip |
Merge pull request #16131 from jamessan/vim-8.1.0306
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 05c33d7918..6120deb77a 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -80,7 +80,7 @@ static void nlua_error(lua_State *const lstate, const char *const msg) const char *const str = lua_tolstring(lstate, -1, &len); msg_ext_set_kind("lua_error"); - emsgf_multiline(msg, (int)len, str); + semsg_multiline(msg, (int)len, str); lua_pop(lstate, 1); } @@ -101,7 +101,7 @@ static void nlua_luv_error_event(void **argv) { char *error = (char *)argv[0]; msg_ext_set_kind("lua_error"); - emsgf_multiline("Error executing luv callback:\n%s", error); + semsg_multiline("Error executing luv callback:\n%s", error); xfree(error); } @@ -458,7 +458,7 @@ void nlua_init(void) lua_State *lstate = luaL_newstate(); if (lstate == NULL) { - EMSG(_("E970: Failed to initialize lua interpreter")); + emsg(_("E970: Failed to initialize lua interpreter")); preserve_exit(); } luaL_openlibs(lstate); @@ -519,10 +519,10 @@ static void nlua_print_event(void **argv) } break; } - msg((char_u *)str + start); + msg(str + start); } if (len && str[len - 1] == NUL) { // Last was newline - msg((char_u *)""); + msg(""); } xfree(str); } @@ -1091,7 +1091,7 @@ void ex_luado(exarg_T *const eap) FUNC_ATTR_NONNULL_ALL { if (u_save(eap->line1 - 1, eap->line2 + 1) == FAIL) { - EMSG(_("cannot save undo information")); + emsg(_("cannot save undo information")); return; } const char *const cmd = (const char *)eap->arg; |