We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8699919 commit f07f0fcCopy full SHA for f07f0fc
spec/main_spec.lua
@@ -564,6 +564,7 @@ describe('fenster', function()
564
local index = 0
565
while window.keys[index] ~= nil do
566
assert.is_boolean(window.keys[index])
567
+ assert.is_false(window.keys[index])
568
index = index + 1
569
end
570
assert.is_equal(index, 256)
src/main.c
@@ -184,7 +184,7 @@ static int lfenster_open(lua_State *L) {
184
// initialize the keys table and put it in the registry
185
lua_createtable(L, KEYS_LENGTH, 0);
186
for (int i = 0; i < KEYS_LENGTH; i++) {
187
- lua_pushboolean(L, p_fenster->keys[i]);
+ lua_pushboolean(L, 0);
188
lua_rawseti(L, -2, i);
189
}
190
lua_pushvalue(L, -1); // copy the keys table since luaL_ref pops it
0 commit comments