=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-show-options.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/tmux/cmd-show-options.c 2011/01/04 00:42:47 1.12 --- src/usr.bin/tmux/cmd-show-options.c 2011/01/04 02:03:41 1.13 *************** *** 1,4 **** ! /* $OpenBSD: cmd-show-options.c,v 1.12 2011/01/04 00:42:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-show-options.c,v 1.13 2011/01/04 02:03:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 39,44 **** --- 39,54 ---- cmd_show_options_exec }; + const struct cmd_entry cmd_show_window_options_entry = { + "show-window-options", "showw", + "gt:", 0, 0, + "[-g] " CMD_TARGET_WINDOW_USAGE, + 0, + NULL, + NULL, + cmd_show_options_exec + }; + int cmd_show_options_exec(struct cmd *self, struct cmd_ctx *ctx) { *************** *** 53,59 **** if (args_has(self->args, 's')) { oo = &global_options; table = server_options_table; ! } else if (args_has(self->args, 'w')) { table = window_options_table; if (args_has(self->args, 'g')) oo = &global_w_options; --- 63,70 ---- if (args_has(self->args, 's')) { oo = &global_options; table = server_options_table; ! } else if (args_has(self->args, 'w') || ! self->entry == &cmd_show_window_options_entry) { table = window_options_table; if (args_has(self->args, 'g')) oo = &global_w_options;