=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-clear-history.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/tmux/Attic/cmd-clear-history.c 2009/11/13 19:53:28 1.7 --- src/usr.bin/tmux/Attic/cmd-clear-history.c 2011/01/04 00:42:46 1.8 *************** *** 1,4 **** ! /* $OpenBSD: cmd-clear-history.c,v 1.7 2009/11/13 19:53:28 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-clear-history.c,v 1.8 2011/01/04 00:42:46 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 28,50 **** const struct cmd_entry cmd_clear_history_entry = { "clear-history", "clearhist", CMD_TARGET_PANE_USAGE, ! 0, "", ! cmd_target_init, ! cmd_target_parse, ! cmd_clear_history_exec, ! cmd_target_free, ! cmd_target_print }; int cmd_clear_history_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct cmd_target_data *data = self->data; struct window_pane *wp; struct grid *gd; ! if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL) return (-1); gd = wp->base.grid; --- 28,49 ---- const struct cmd_entry cmd_clear_history_entry = { "clear-history", "clearhist", + "t:", 0, 0, CMD_TARGET_PANE_USAGE, ! 0, ! NULL, ! NULL, ! cmd_clear_history_exec }; int cmd_clear_history_exec(struct cmd *self, struct cmd_ctx *ctx) { ! struct args *args = self->args; struct window_pane *wp; struct grid *gd; ! if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (-1); gd = wp->base.grid;