degesch: refresh the prompt when a hook is set
This commit is contained in:
parent
0995da3900
commit
1e79aaec26
|
@ -9138,6 +9138,7 @@ lua_plugin_hook_prompt (lua_State *L)
|
||||||
hook->data.prompt_hook.vtable = &lua_prompt_hook_vtable;
|
hook->data.prompt_hook.vtable = &lua_prompt_hook_vtable;
|
||||||
plugin->ctx->prompt_hooks =
|
plugin->ctx->prompt_hooks =
|
||||||
hook_insert (plugin->ctx->prompt_hooks, &hook->data.hook);
|
hook_insert (plugin->ctx->prompt_hooks, &hook->data.hook);
|
||||||
|
refresh_prompt (plugin->ctx);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue