From 7f2e43c637e56055831898b0f63a27ec1c3ca026 Mon Sep 17 00:00:00 2001 From: Alexandre Dubray Date: Mon, 5 Feb 2018 12:34:10 +0100 Subject: 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) --- src/nvim/lua/executor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/lua') 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); } -- cgit