Add time and a command count to control mode guards, based on code from George

Nachman.
This commit is contained in:
Nicholas Marriott
2013-03-11 09:35:44 +00:00
parent a060aa2bf0
commit c41d92d27a
3 changed files with 36 additions and 16 deletions

4
tmux.h
View File

@ -1412,6 +1412,9 @@ struct cmd_q {
struct cmd_q_item *item;
struct cmd *cmd;
time_t time;
u_int number;
void (*emptyfn)(struct cmd_q *);
void *data;
@ -1853,6 +1856,7 @@ int cmdq_free(struct cmd_q *);
void printflike2 cmdq_print(struct cmd_q *, const char *, ...);
void printflike2 cmdq_info(struct cmd_q *, const char *, ...);
void printflike2 cmdq_error(struct cmd_q *, const char *, ...);
void cmdq_guard(struct cmd_q *, const char *);
void cmdq_run(struct cmd_q *, struct cmd_list *);
void cmdq_append(struct cmd_q *, struct cmd_list *);
int cmdq_continue(struct cmd_q *);