=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-next-layout.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/tmux/Attic/cmd-next-layout.c 2009/11/13 19:53:29 1.5 +++ src/usr.bin/tmux/Attic/cmd-next-layout.c 2011/01/04 00:42:47 1.6 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-next-layout.c,v 1.5 2009/11/13 19:53:29 nicm Exp $ */ +/* $OpenBSD: cmd-next-layout.c,v 1.6 2011/01/04 00:42:47 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -28,23 +28,22 @@ const struct cmd_entry cmd_next_layout_entry = { "next-layout", "nextl", + "t:", 0, 0, CMD_TARGET_WINDOW_USAGE, - 0, "", - cmd_target_init, - cmd_target_parse, - cmd_next_layout_exec, - cmd_target_free, - cmd_target_print + 0, + NULL, + NULL, + cmd_next_layout_exec }; int cmd_next_layout_exec(struct cmd *self, struct cmd_ctx *ctx) { - struct cmd_target_data *data = self->data; - struct winlink *wl; - u_int layout; + struct args *args = self->args; + struct winlink *wl; + u_int layout; - if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) + if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL) return (-1); layout = layout_set_next(wl->window);