aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-04-14 06:00:52 +0000
committernicm <nicm>2020-04-14 06:00:52 +0000
commit63ec7918542a36ac9afa60b2e91f75337c5a91ff (patch)
tree2db8afeeaa9aef3734b0cbed62f423d690c09ab4 /tmux.h
parentfc83517913c8280c222a6cf78ca7fb8053421b37 (diff)
downloadrtmux-63ec7918542a36ac9afa60b2e91f75337c5a91ff.tar.gz
rtmux-63ec7918542a36ac9afa60b2e91f75337c5a91ff.tar.bz2
rtmux-63ec7918542a36ac9afa60b2e91f75337c5a91ff.zip
Provide an accessor for the running queue item and use it to not let
hooks recurse.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
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 *, ...);