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

Diff for /src/usr.bin/tmux/Attic/cmd-send-prefix.c between version 1.8 and 1.9

version 1.8, 2011/01/04 00:42:47 version 1.9, 2012/01/21 08:40:09
Line 28 
Line 28 
   
 const struct cmd_entry cmd_send_prefix_entry = {  const struct cmd_entry cmd_send_prefix_entry = {
         "send-prefix", NULL,          "send-prefix", NULL,
         "t:", 0, 0,          "2t:", 0, 0,
         CMD_TARGET_PANE_USAGE,          "[-2] " CMD_TARGET_PANE_USAGE,
         0,          0,
         NULL,          NULL,
         NULL,          NULL,
Line 42 
Line 42 
         struct args             *args = self->args;          struct args             *args = self->args;
         struct session          *s;          struct session          *s;
         struct window_pane      *wp;          struct window_pane      *wp;
         struct keylist          *keylist;          int                      key;
   
         if (cmd_find_pane(ctx, args_get(args, 't'), &s, &wp) == NULL)          if (cmd_find_pane(ctx, args_get(args, 't'), &s, &wp) == NULL)
                 return (-1);                  return (-1);
   
         keylist = options_get_data(&s->options, "prefix");          if (args_has(args, '2'))
         window_pane_key(wp, s, ARRAY_FIRST(keylist));                  key = options_get_number(&s->options, "prefix2");
           else
                   key = options_get_number(&s->options, "prefix");
           window_pane_key(wp, s, key);
   
         return (0);          return (0);
 }  }

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