aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 0fdf225..17f0004 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -2439,7 +2439,7 @@ static bool vis_lua_input(Vis *vis, const char *key, size_t len) {
vis_lua_event_get(L, "input");
if (lua_isfunction(L, -1)) {
lua_pushlstring(L, key, len);
- if (pcall(vis, L, 1, 1) != 0) {
+ if (pcall(vis, L, 1, 1) == 0) {
ret = lua_isboolean(L, -1) && lua_toboolean(L, -1);
lua_pop(L, 1);
}