=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-capture-pane.c,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/tmux/cmd-capture-pane.c 2013/03/21 18:43:34 1.14 --- src/usr.bin/tmux/cmd-capture-pane.c 2013/03/22 15:51:15 1.15 *************** *** 1,4 **** ! /* $OpenBSD: cmd-capture-pane.c,v 1.14 2013/03/21 18:43:34 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado --- 1,4 ---- ! /* $OpenBSD: cmd-capture-pane.c,v 1.15 2013/03/22 15:51:15 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado *************** *** 31,39 **** const struct cmd_entry cmd_capture_pane_entry = { "capture-pane", "capturep", ! "b:c:E:pS:t:", 0, 0, ! "[-p] [-c target-client] [-b buffer-index] [-E end-line] " ! "[-S start-line] " CMD_TARGET_PANE_USAGE, 0, NULL, --- 31,38 ---- const struct cmd_entry cmd_capture_pane_entry = { "capture-pane", "capturep", ! "b:E:pS:t:", 0, 0, ! "[-p] [-b buffer-index] [-E end-line] [-S start-line]" CMD_TARGET_PANE_USAGE, 0, NULL, *************** *** 45,51 **** cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx) { struct args *args = self->args; ! struct client *c; struct window_pane *wp; char *buf, *line, *cause; struct screen *s; --- 44,50 ---- cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx) { struct args *args = self->args; ! struct client *c = ctx->cmdclient; struct window_pane *wp; char *buf, *line, *cause; struct screen *s; *************** *** 53,61 **** int buffer, n; u_int i, limit, top, bottom, tmp; size_t len, linelen; - - if ((c = cmd_find_client(ctx, args_get(args, 'c'))) == NULL) - return (CMD_RETURN_ERROR); if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (CMD_RETURN_ERROR); --- 52,57 ----