=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-kill-pane.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/tmux/cmd-kill-pane.c 2014/10/20 22:29:25 1.16 --- src/usr.bin/tmux/cmd-kill-pane.c 2015/12/13 14:32:38 1.17 *************** *** 1,4 **** ! /* $OpenBSD: cmd-kill-pane.c,v 1.16 2014/10/20 22:29:25 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-kill-pane.c,v 1.17 2015/12/13 14:32:38 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 32,50 **** "kill-pane", "killp", "at:", 0, 0, "[-a] " CMD_TARGET_PANE_USAGE, ! 0, cmd_kill_pane_exec }; enum cmd_retval cmd_kill_pane_exec(struct cmd *self, struct cmd_q *cmdq) { ! struct args *args = self->args; ! struct winlink *wl; ! struct window_pane *loopwp, *tmpwp, *wp; - if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp)) == NULL) - return (CMD_RETURN_ERROR); server_unzoom_window(wl->window); if (window_count_panes(wl->window) == 1) { --- 32,47 ---- "kill-pane", "killp", "at:", 0, 0, "[-a] " CMD_TARGET_PANE_USAGE, ! CMD_PANE_T, cmd_kill_pane_exec }; enum cmd_retval cmd_kill_pane_exec(struct cmd *self, struct cmd_q *cmdq) { ! struct winlink *wl = cmdq->state.tflag.wl; ! struct window_pane *loopwp, *tmpwp, *wp = cmdq->state.tflag.wp; server_unzoom_window(wl->window); if (window_count_panes(wl->window) == 1) {