aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis-lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-lua.c b/vis-lua.c
index a92b186..62c0e4c 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -832,6 +832,8 @@ static int keymap(lua_State *L, Vis *vis, Win *win) {
goto err;
} else if (lua_isuserdata(L, 4)) {
binding->action = obj_ref_check(L, 4, VIS_LUA_TYPE_KEYACTION);
+ } else {
+ goto err;
}
if (win) {