=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-list-panes.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/tmux/cmd-list-panes.c 2010/11/15 06:52:11 1.6 --- src/usr.bin/tmux/cmd-list-panes.c 2011/01/04 00:42:46 1.7 *************** *** 1,4 **** ! /* $OpenBSD: cmd-list-panes.c,v 1.6 2010/11/15 06:52:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-list-panes.c,v 1.7 2011/01/04 00:42:46 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 30,48 **** const struct cmd_entry cmd_list_panes_entry = { "list-panes", "lsp", CMD_TARGET_WINDOW_USAGE, ! 0, "", ! cmd_target_init, ! cmd_target_parse, ! cmd_list_panes_exec, ! cmd_target_free, ! cmd_target_print }; int cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct cmd_target_data *data = self->data; struct winlink *wl; struct window_pane *wp; struct grid *gd; --- 30,47 ---- const struct cmd_entry cmd_list_panes_entry = { "list-panes", "lsp", + "t:", 0, 0, CMD_TARGET_WINDOW_USAGE, ! 0, ! NULL, ! NULL, ! cmd_list_panes_exec }; int cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct args *args = self->args; struct winlink *wl; struct window_pane *wp; struct grid *gd; *************** *** 50,56 **** u_int i, n; unsigned long long size; ! if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) return (-1); n = 0; --- 49,55 ---- u_int i, n; unsigned long long size; ! if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL) return (-1); n = 0;