=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-choose-buffer.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/tmux/Attic/cmd-choose-buffer.c 2013/03/21 16:09:17 1.12 --- src/usr.bin/tmux/Attic/cmd-choose-buffer.c 2013/03/21 16:09:59 1.13 *************** *** 1,4 **** ! /* $OpenBSD: cmd-choose-buffer.c,v 1.12 2013/03/21 16:09:17 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-choose-buffer.c,v 1.13 2013/03/21 16:09:59 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott *************** *** 51,61 **** const char *template; u_int idx; ! if (ctx->curclient == NULL) { ! ctx->error(ctx, "must be run interactively"); return (CMD_RETURN_ERROR); } - c = ctx->curclient; if ((template = args_get(args, 'F')) == NULL) template = CHOOSE_BUFFER_TEMPLATE; --- 51,60 ---- const char *template; u_int idx; ! if ((c = cmd_current_client(ctx)) == NULL) { ! ctx->error(ctx, "no client available"); return (CMD_RETURN_ERROR); } if ((template = args_get(args, 'F')) == NULL) template = CHOOSE_BUFFER_TEMPLATE;