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

Diff for /src/usr.bin/tmux/key-string.c between version 1.22 and 1.23

version 1.22, 2012/01/21 08:40:09 version 1.23, 2012/03/04 20:40:54
Line 137 
Line 137 
 key_string_lookup_string(const char *string)  key_string_lookup_string(const char *string)
 {  {
         int     key, modifiers;          int     key, modifiers;
           u_short u;
           int     size;
   
           /* Is this a hexadecimal value? */
           if (string[0] == '0' && string[1] == 'x') {
                   if (sscanf(string + 2, "%hx%n", &u, &size) != 1 || size > 4)
                           return (KEYC_NONE);
                   return (u);
           }
   
         /* Check for modifiers. */          /* Check for modifiers. */
         modifiers = 0;          modifiers = 0;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23