Fix error reporting for client commands by adding a flag to cmd_find_client to

tell it whether or not to show errors, sometimes it's needed and sometimes not.
This commit is contained in:
Nicholas Marriott
2013-02-22 23:04:53 +00:00
parent 911ef4e69a
commit 3a2e9d805a
16 changed files with 23 additions and 21 deletions

2
tmux.h
View File

@ -1728,7 +1728,7 @@ struct cmd *cmd_parse(int, char **, char **);
size_t cmd_print(struct cmd *, char *, size_t);
struct session *cmd_current_session(struct cmd_ctx *, int);
struct client *cmd_current_client(struct cmd_ctx *);
struct client *cmd_find_client(struct cmd_ctx *, const char *);
struct client *cmd_find_client(struct cmd_ctx *, const char *, int);
struct session *cmd_find_session(struct cmd_ctx *, const char *, int);
struct winlink *cmd_find_window(
struct cmd_ctx *, const char *, struct session **);