=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-display-panes.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/tmux/cmd-display-panes.c 2017/03/09 17:06:35 1.18 --- src/usr.bin/tmux/cmd-display-panes.c 2017/04/22 10:22:39 1.19 *************** *** 1,4 **** ! /* $OpenBSD: cmd-display-panes.c,v 1.18 2017/03/09 17:06:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-display-panes.c,v 1.19 2017/04/22 10:22:39 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 40,47 **** .args = { "t:", 0, 1 }, .usage = CMD_TARGET_CLIENT_USAGE, - .tflag = CMD_CLIENT, - .flags = CMD_AFTERHOOK, .exec = cmd_display_panes_exec }; --- 40,45 ---- *************** *** 50,56 **** cmd_display_panes_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; ! struct client *c = item->state.c; if (c->identify_callback != NULL) return (CMD_RETURN_NORMAL); --- 48,57 ---- cmd_display_panes_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; ! struct client *c; ! ! if ((c = cmd_find_client(item, args_get(args, 't'), 0)) == NULL) ! return (CMD_RETURN_ERROR); if (c->identify_callback != NULL) return (CMD_RETURN_NORMAL);