[BACK]Return to cmd-kill-pane.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-kill-pane.c between version 1.9 and 1.10

version 1.9, 2009/11/13 19:53:29 version 1.10, 2011/01/04 00:42:46
Line 30 
Line 30 
   
 const struct cmd_entry cmd_kill_pane_entry = {  const struct cmd_entry cmd_kill_pane_entry = {
         "kill-pane", "killp",          "kill-pane", "killp",
           "at:", 0, 0,
         "[-a] " CMD_TARGET_PANE_USAGE,          "[-a] " CMD_TARGET_PANE_USAGE,
         0, "a",          0,
         cmd_target_init,          NULL,
         cmd_target_parse,          NULL,
         cmd_kill_pane_exec,          cmd_kill_pane_exec
         cmd_target_free,  
         cmd_target_print  
 };  };
   
 int  int
 cmd_kill_pane_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_kill_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_target_data  *data = self->data;          struct args             *args = self->args;
         struct winlink          *wl;          struct winlink          *wl;
         struct window_pane      *loopwp, *nextwp, *wp;          struct window_pane      *loopwp, *nextwp, *wp;
   
         if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL)          if ((wl = cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp)) == NULL)
                 return (-1);                  return (-1);
   
         if (window_count_panes(wl->window) == 1) {          if (window_count_panes(wl->window) == 1) {
Line 56 
Line 55 
                 return (0);                  return (0);
         }          }
   
         if (cmd_check_flag(data->chflags, 'a')) {          if (args_has(self->args, 'a')) {
                 loopwp = TAILQ_FIRST(&wl->window->panes);                  loopwp = TAILQ_FIRST(&wl->window->panes);
                 while (loopwp != NULL) {                  while (loopwp != NULL) {
                         nextwp = TAILQ_NEXT(loopwp, entry);                          nextwp = TAILQ_NEXT(loopwp, entry);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10