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

Diff for /src/usr.bin/tmux/Attic/cmd-clock-mode.c between version 1.3 and 1.4

version 1.3, 2009/07/26 12:58:44 version 1.4, 2009/08/18 16:21:04
Line 28 
Line 28 
   
 const struct cmd_entry cmd_clock_mode_entry = {  const struct cmd_entry cmd_clock_mode_entry = {
         "clock-mode", NULL,          "clock-mode", NULL,
         CMD_TARGET_WINDOW_USAGE,          CMD_TARGET_PANE_USAGE,
         0, 0,          0, 0,
         cmd_target_init,          cmd_target_init,
         cmd_target_parse,          cmd_target_parse,
Line 41 
Line 41 
 cmd_clock_mode_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_clock_mode_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_target_data  *data = self->data;          struct cmd_target_data  *data = self->data;
         struct winlink          *wl;          struct window_pane      *wp;
   
         if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL)          if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
                 return (-1);                  return (-1);
   
         window_pane_set_mode(wl->window->active, &window_clock_mode);          window_pane_set_mode(wp, &window_clock_mode);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4