Provide an accessor for the running queue item and use it to not let

hooks recurse.
This commit is contained in:
nicm
2020-04-14 06:00:52 +00:00
parent fc83517913
commit 63ec791854
3 changed files with 33 additions and 13 deletions

1
tmux.h
View File

@ -2132,6 +2132,7 @@ void cmdq_insert_hook(struct session *, struct cmdq_item *,
struct cmd_find_state *, const char *, ...);
void cmdq_continue(struct cmdq_item *);
u_int cmdq_next(struct client *);
struct cmdq_item *cmdq_running(struct client *);
void cmdq_guard(struct cmdq_item *, const char *, int);
void printflike(2, 3) cmdq_print(struct cmdq_item *, const char *, ...);
void printflike(2, 3) cmdq_error(struct cmdq_item *, const char *, ...);