mirror of
https://github.com/tmux/tmux.git
synced 2026-08-03 14:08:59 +00:00
Ignore monitor hooks in main cb.
This commit is contained in:
3
hooks.c
3
hooks.c
@@ -233,6 +233,9 @@ hooks_event_cb(const char *name, struct event_payload *ep,
|
||||
{
|
||||
struct cmdq_item *item;
|
||||
|
||||
if (event_payload_get_pointer(ep, "_hook_monitor") != NULL)
|
||||
return;
|
||||
|
||||
item = event_payload_get_pointer(ep, "_cmdq_item");
|
||||
if (item != NULL) {
|
||||
hooks_insert_event(item, name, ep, NULL, 0);
|
||||
|
||||
Reference in New Issue
Block a user