summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
commitebfec1c531f32d424bb2aca6e7391ef3bfcbfe20 (patch)
treed017ab5fcc15f2eef851de089c3b2aef39d7a387 /src/if_lua.c
parent3d79f0a4309995956bd8889940cca22f7a15881d (diff)
patch 9.0.1234: the code style has to be checked manuallyv9.0.1234
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 6941789b91..45f233fdec 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -657,9 +657,11 @@ luaV_totypval(lua_State *L, int pos, typval_T *tv)
lua_pushvalue(L, pos);
lua_tableref = luaL_ref(L, LUA_REGISTRYINDEX);
- if (lua_getmetatable(L, pos)) {
+ if (lua_getmetatable(L, pos))
+ {
lua_getfield(L, -1, LUA___CALL);
- if (lua_isfunction(L, -1)) {
+ if (lua_isfunction(L, -1))
+ {
char_u *name;
int lua_funcref = luaL_ref(L, LUA_REGISTRYINDEX);
luaV_CFuncState *state = ALLOC_CLEAR_ONE(luaV_CFuncState);
@@ -827,7 +829,8 @@ luaV_msgfunc(lua_State *L, msgfunc_T mf)
luatyp *o = NULL; \
if (obj == NULL) \
lua_pushnil(L); \
- else { \
+ else \
+ { \
luaV_getudata(L, obj); \
if (lua_isnil(L, -1)) /* not interned? */ \
{ \