If it isn't available explicitly, work out the current client in a similar way

to the current session - build a list of the possibilities then pick the
newest.
This commit is contained in:
Nicholas Marriott
2009-11-03 20:59:22 +00:00
parent 5289da29ba
commit 5761ab6b55
2 changed files with 47 additions and 30 deletions

1
tmux.h
View File

@ -1427,6 +1427,7 @@ int cmd_exec(struct cmd *, struct cmd_ctx *);
void cmd_free(struct cmd *);
size_t cmd_print(struct cmd *, char *, size_t);
struct session *cmd_current_session(struct cmd_ctx *);
struct client *cmd_current_client(struct cmd_ctx *);
struct client *cmd_find_client(struct cmd_ctx *, const char *);
struct session *cmd_find_session(struct cmd_ctx *, const char *);
struct winlink *cmd_find_window(