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

Diff for /src/usr.bin/tmux/cmd-copy-mode.c between version 1.5 and 1.6

version 1.5, 2009/07/26 12:58:44 version 1.6, 2009/08/18 16:21:04
Line 28 
Line 28 
   
 const struct cmd_entry cmd_copy_mode_entry = {  const struct cmd_entry cmd_copy_mode_entry = {
         "copy-mode", NULL,          "copy-mode", NULL,
         "[-u] " CMD_TARGET_WINDOW_USAGE,          "[-u] " CMD_TARGET_PANE_USAGE,
         0, CMD_CHFLAG('u'),          0, CMD_CHFLAG('u'),
         cmd_target_init,          cmd_target_init,
         cmd_target_parse,          cmd_target_parse,
Line 41 
Line 41 
 cmd_copy_mode_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_copy_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;          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);
         wp = wl->window->active;  
   
         window_pane_set_mode(wp, &window_copy_mode);          window_pane_set_mode(wp, &window_copy_mode);
         if (wp->mode == &window_copy_mode && data->chflags & CMD_CHFLAG('u'))          if (wp->mode == &window_copy_mode && data->chflags & CMD_CHFLAG('u'))

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6