1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Assign the given ses to smjs_ses while the ECMAScript callback runs in

smjs_keybinding_action_callback.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-24 07:01:17 +00:00 committed by Miciah Dashiel Butler Masters
parent f1fe83b035
commit 330cd6b7ce

View File

@ -48,8 +48,12 @@ smjs_keybinding_action_callback(va_list ap, void *data)
assert(func);
smjs_ses = ses;
JS_CallFunction(smjs_ctx, NULL, func, 0, NULL, &rval);
smjs_ses = NULL;
return EVENT_HOOK_STATUS_LAST;
}