diff options
author | Alexandre Dubray <alexandre.dubray@student.uclouvain.be> | 2018-02-05 12:34:10 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-01-22 20:15:27 +0100 |
commit | 7f2e43c637e56055831898b0f63a27ec1c3ca026 (patch) | |
tree | ea279f55e4c6228c560e2ad970eba06eded8de85 /src/nvim/lua/executor.c | |
parent | bfb8170d32919dffee9d78a9afc298dc98fca5ba (diff) | |
download | rneovim-7f2e43c637e56055831898b0f63a27ec1c3ca026.tar.gz rneovim-7f2e43c637e56055831898b0f63a27ec1c3ca026.tar.bz2 rneovim-7f2e43c637e56055831898b0f63a27ec1c3ca026.zip |
message.c: add msg_echo_attr functions, use it for lua error messages
The added function behaves like the non-echo function but display message
in a echo-style way (i.e. tab and newline are preserved)
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index a7bda9d037..bc81df4c0b 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -50,7 +50,7 @@ static void nlua_error(lua_State *const lstate, const char *const msg) size_t len; const char *const str = lua_tolstring(lstate, -1, &len); - emsgf(msg, (int)len, str); + emsgf_echo(msg, (int)len, str); lua_pop(lstate, 1); } |