diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-02-04 22:02:37 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-02-04 22:02:37 +0100 |
commit | b84634de30884f4f6a17b5872f4553ec746797c5 (patch) | |
tree | 452e9a25c56fdff02059ef83d77bfb5278457372 /src/if_lua.c | |
parent | 9d49da8cbbd46d528be38ec3ac394a2ce9062093 (diff) |
updated for version 7.4.619v7.4.619
Problem: luaV_setref() not returning the correct value.
Solution: Return one.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index b4789c449e..0ca81e3d89 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -1517,7 +1517,7 @@ luaV_luaeval (lua_State *L) return 0; } luaV_totypval(L, -1, rettv); - return 0; + return 1; } static int @@ -1530,7 +1530,8 @@ luaV_setref (lua_State *L) luaV_getfield(L, LUAVIM_LIST); luaV_getfield(L, LUAVIM_DICT); lua_pushnil(L); - while (!abort && lua_next(L, lua_upvalueindex(1)) != 0) /* traverse cache table */ + /* traverse cache table */ + while (!abort && lua_next(L, lua_upvalueindex(1)) != 0) { lua_getmetatable(L, -1); if (lua_rawequal(L, -1, 2)) /* list? */ |