diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-18 12:16:58 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-01-23 19:34:13 +0100 |
commit | 27b78130252be59416f0ce29111e59a2de99b93e (patch) | |
tree | ddf8704390fa4fccfa42010d4adb62766690f4d9 /src/nvim/lua/executor.c | |
parent | 67bac681ea6b38b458ad0b7b10f2a9dce85baef0 (diff) | |
download | rneovim-27b78130252be59416f0ce29111e59a2de99b93e.tar.gz rneovim-27b78130252be59416f0ce29111e59a2de99b93e.tar.bz2 rneovim-27b78130252be59416f0ce29111e59a2de99b93e.zip |
cleanup: reduce some duplicate code, avoid function pointers for a condition
Add 'multiline' flag to history for correct :messages output
Use larger buffer size for multiline messages. if this turns out to not
be enough, we could do size calculation like api_set_error
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 bc81df4c0b..93069893cf 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_echo(msg, (int)len, str); + emsgf_multiline(msg, (int)len, str); lua_pop(lstate, 1); } |