aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-01-18 12:16:58 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-01-23 19:34:13 +0100
commit27b78130252be59416f0ce29111e59a2de99b93e (patch)
treeddf8704390fa4fccfa42010d4adb62766690f4d9 /src/nvim/lua/executor.c
parent67bac681ea6b38b458ad0b7b10f2a9dce85baef0 (diff)
downloadrneovim-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.c2
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);
}