version 1.62, 2011/12/24 08:26:59 |
version 1.63, 2012/01/21 08:40:09 |
|
|
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) |
|
|
} |
} |
|
|
/* 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)) { |