[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.29 and 1.30

version 1.29, 2015/11/12 22:04:37 version 1.30, 2015/11/14 10:56:31
Line 144 
Line 144 
         static const char       *other = "!#()+,-.0123456789:;<=>?'\r\t";          static const char       *other = "!#()+,-.0123456789:;<=>?'\r\t";
         key_code                 key;          key_code                 key;
         u_short                  u;          u_short                  u;
         int                      size;          int                      size, more;
         key_code                 modifiers;          key_code                 modifiers;
         struct utf8_data         ud;          struct utf8_data         ud;
         u_int                    i;          u_int                    i;
Line 177 
Line 177 
                         if (strlen(string) != ud.size)                          if (strlen(string) != ud.size)
                                 return (KEYC_NONE);                                  return (KEYC_NONE);
                         for (i = 1; i < ud.size; i++)                          for (i = 1; i < ud.size; i++)
                                 utf8_append(&ud, (u_char)string[i]);                                  more = utf8_append(&ud, (u_char)string[i]);
                           if (more != 0)
                                   return (KEYC_NONE);
                         key = utf8_combine(&ud);                          key = utf8_combine(&ud);
                         return (key | modifiers);                          return (key | modifiers);
                 }                  }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30