=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-refresh-client.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/tmux/cmd-refresh-client.c 2017/01/10 19:45:55 1.23 --- src/usr.bin/tmux/cmd-refresh-client.c 2017/04/22 10:22:39 1.24 *************** *** 1,4 **** ! /* $OpenBSD: cmd-refresh-client.c,v 1.23 2017/01/10 19:45:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-refresh-client.c,v 1.24 2017/04/22 10:22:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 34,41 **** .args = { "C:St:", 0, 0 }, .usage = "[-S] [-C size] " CMD_TARGET_CLIENT_USAGE, - .tflag = CMD_CLIENT, - .flags = CMD_AFTERHOOK, .exec = cmd_refresh_client_exec }; --- 34,39 ---- *************** *** 44,52 **** cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; ! struct client *c = item->state.c; const char *size; u_int w, h; if (args_has(args, 'C')) { if ((size = args_get(args, 'C')) == NULL) { --- 42,53 ---- cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; ! struct client *c; const char *size; u_int w, h; + + if ((c = cmd_find_client(item, args_get(args, 't'), 0)) == NULL) + return (CMD_RETURN_ERROR); if (args_has(args, 'C')) { if ((size = args_get(args, 'C')) == NULL) {