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 124e380..70c3996 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -1016,7 +1016,7 @@ static size_t motion_lua(Vis *vis, Win *win, void *data, size_t pos) {
static int motion_register(lua_State *L) {
Vis *vis = obj_ref_check(L, 1, "vis");
const void *func = func_ref_new(L, 2);
- int id = vis_motion_register(vis, 0, (void*)func, motion_lua);
+ int id = vis_motion_register(vis, (void*)func, motion_lua);
lua_pushinteger(L, id);
return 1;
}