=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-list-windows.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/tmux/cmd-list-windows.c 2010/11/15 06:52:11 1.10 --- src/usr.bin/tmux/cmd-list-windows.c 2011/01/04 00:42:46 1.11 *************** *** 1,4 **** ! /* $OpenBSD: cmd-list-windows.c,v 1.10 2010/11/15 06:52:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-list-windows.c,v 1.11 2011/01/04 00:42:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 30,53 **** const struct cmd_entry cmd_list_windows_entry = { "list-windows", "lsw", CMD_TARGET_SESSION_USAGE, ! 0, "", ! cmd_target_init, ! cmd_target_parse, ! cmd_list_windows_exec, ! cmd_target_free, ! cmd_target_print }; int cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct cmd_target_data *data = self->data; ! struct session *s; ! struct winlink *wl; ! char *layout; ! if ((s = cmd_find_session(ctx, data->target)) == NULL) return (-1); RB_FOREACH(wl, winlinks, &s->windows) { --- 30,52 ---- const struct cmd_entry cmd_list_windows_entry = { "list-windows", "lsw", + "t:", 0, 0, CMD_TARGET_SESSION_USAGE, ! 0, ! NULL, ! NULL, ! cmd_list_windows_exec }; int cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct args *args = self->args; ! struct session *s; ! struct winlink *wl; ! char *layout; ! if ((s = cmd_find_session(ctx, args_get(args, 't'))) == NULL) return (-1); RB_FOREACH(wl, winlinks, &s->windows) {