degesch: refresh the prompt when a hook is set

This commit is contained in:
Přemysl Eric Janouch 2016-10-28 13:58:37 +02:00
parent 0995da3900
commit 1e79aaec26
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -9138,6 +9138,7 @@ lua_plugin_hook_prompt (lua_State *L)
hook->data.prompt_hook.vtable = &lua_prompt_hook_vtable;
plugin->ctx->prompt_hooks =
hook_insert (plugin->ctx->prompt_hooks, &hook->data.hook);
refresh_prompt (plugin->ctx);
return 1;
}