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:
parent
f1fe83b035
commit
330cd6b7ce
@ -48,8 +48,12 @@ smjs_keybinding_action_callback(va_list ap, void *data)
|
|||||||
|
|
||||||
assert(func);
|
assert(func);
|
||||||
|
|
||||||
|
smjs_ses = ses;
|
||||||
|
|
||||||
JS_CallFunction(smjs_ctx, NULL, func, 0, NULL, &rval);
|
JS_CallFunction(smjs_ctx, NULL, func, 0, NULL, &rval);
|
||||||
|
|
||||||
|
smjs_ses = NULL;
|
||||||
|
|
||||||
return EVENT_HOOK_STATUS_LAST;
|
return EVENT_HOOK_STATUS_LAST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user