aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-28 13:58:37 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-28 13:58:37 +0200
commit1e79aaec2687414cc98045c545c533b0c432f11d (patch)
tree48d4f4373076840369b185aa9947f9ad164a7b28
parent0995da3900a270387b9098f28505edec4c202955 (diff)
downloadxK-1e79aaec2687414cc98045c545c533b0c432f11d.tar.gz
xK-1e79aaec2687414cc98045c545c533b0c432f11d.tar.xz
xK-1e79aaec2687414cc98045c545c533b0c432f11d.zip
degesch: refresh the prompt when a hook is set
-rw-r--r--degesch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index a26ddd9..d4066c1 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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;
}