=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-set-window-option.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/tmux/Attic/cmd-set-window-option.c 2009/12/03 17:44:02 1.16 --- src/usr.bin/tmux/Attic/cmd-set-window-option.c 2011/01/04 00:42:47 1.17 *************** *** 1,4 **** ! /* $OpenBSD: cmd-set-window-option.c,v 1.16 2009/12/03 17:44:02 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-set-window-option.c,v 1.17 2011/01/04 00:42:47 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 28,47 **** const struct cmd_entry cmd_set_window_option_entry = { "set-window-option", "setw", "[-agu] " CMD_TARGET_WINDOW_USAGE " option [value]", ! CMD_ARG12, "agu", NULL, ! cmd_target_parse, ! cmd_set_window_option_exec, ! cmd_target_free, ! cmd_target_print }; int cmd_set_window_option_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct cmd_target_data *data = self->data; ! cmd_set_flag(&data->chflags, 'w'); return (cmd_set_option_entry.exec(self, ctx)); } --- 28,46 ---- const struct cmd_entry cmd_set_window_option_entry = { "set-window-option", "setw", + "agt:u", 1, 2, "[-agu] " CMD_TARGET_WINDOW_USAGE " option [value]", ! 0, NULL, ! NULL, ! cmd_set_window_option_exec }; int cmd_set_window_option_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct args *args = self->args; ! args_set(args, 'w', NULL); return (cmd_set_option_entry.exec(self, ctx)); }