[BACK]Return to server-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server-client.c between version 1.62 and 1.63

version 1.62, 2011/12/24 08:26:59 version 1.63, 2012/01/21 08:40:09
Line 273 
Line 273 
         struct options          *oo;          struct options          *oo;
         struct timeval           tv;          struct timeval           tv;
         struct key_binding      *bd;          struct key_binding      *bd;
         struct keylist          *keylist;  
         int                      xtimeout, isprefix;          int                      xtimeout, isprefix;
         u_int                    i;  
   
         /* Check the client is good to accept input. */          /* Check the client is good to accept input. */
         if ((c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0)          if ((c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0)
Line 360 
Line 358 
         }          }
   
         /* Is this a prefix key? */          /* Is this a prefix key? */
         keylist = options_get_data(&c->session->options, "prefix");          if (key == options_get_number(&c->session->options, "prefix"))
         isprefix = 0;                  isprefix = 1;
         for (i = 0; i < ARRAY_LENGTH(keylist); i++) {          else if (key == options_get_number(&c->session->options, "prefix2"))
                 if (key == ARRAY_ITEM(keylist, i)) {                  isprefix = 1;
                         isprefix = 1;          else
                         break;                  isprefix = 0;
                 }  
         }  
   
         /* No previous prefix key. */          /* No previous prefix key. */
         if (!(c->flags & CLIENT_PREFIX)) {          if (!(c->flags & CLIENT_PREFIX)) {

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63