From 63ec7918542a36ac9afa60b2e91f75337c5a91ff Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 14 Apr 2020 06:00:52 +0000 Subject: Provide an accessor for the running queue item and use it to not let hooks recurse. --- tmux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index d9fc0a9a..b9097e93 100644 --- a/tmux.h +++ b/tmux.h @@ -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 *, ...); -- cgit