diff options
Diffstat (limited to 'src/scripts.c')
-rw-r--r-- | src/scripts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c index eb0687e4..d7fa89ea 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -608,7 +608,7 @@ global_unbind(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, si g_free(name); } else if (JSValueIsObject(ctx, argv[0])) { - for (l = dwb.keymap; l && argv[0] != ((KeyMap*)l->data)->map->arg.p; l=l->next); + for (l = dwb.keymap; l && !JSValueIsEqual(ctx, argv[0], ((KeyMap*)l->data)->map->arg.arg, exc); l=l->next); } if (l != NULL) { m = l->data; |