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

Diff for /src/usr.bin/tmux/tty-keys.c between version 1.100 and 1.101

version 1.100, 2017/08/27 08:33:55 version 1.101, 2017/08/29 09:18:48
Line 595 
Line 595 
         }          }
   
 first_key:  first_key:
         /* Handle keys starting with escape. */          /* Try to lookup complete key. */
           n = tty_keys_next1(tty, buf, len, &key, &size, expired);
           if (n == 0)     /* found */
                   goto complete_key;
           if (n == 1)
                   goto partial_key;
   
           /*
            * If not a complete key, look for key with an escape prefix (meta
            * modifier).
            */
         if (*buf == '\033') {          if (*buf == '\033') {
                 /* Look for a key without the escape. */                  /* Look for a key without the escape. */
                 n = tty_keys_next1(tty, buf + 1, len - 1, &key, &size, expired);                  n = tty_keys_next1(tty, buf + 1, len - 1, &key, &size, expired);
Line 619 
Line 629 
                 if (n == 1)     /* partial */                  if (n == 1)     /* partial */
                         goto partial_key;                          goto partial_key;
         }          }
   
         /* Try to lookup key. */  
         n = tty_keys_next1(tty, buf, len, &key, &size, expired);  
         if (n == 0)     /* found */  
                 goto complete_key;  
         if (n == 1)  
                 goto partial_key;  
   
         /*          /*
          * At this point, we know the key is not partial (with or without           * At this point, we know the key is not partial (with or without

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101