[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.82 and 1.83

version 1.82, 2015/11/23 20:53:09 version 1.83, 2015/12/12 18:19:00
Line 344 
Line 344 
         if (tk == NULL) {          if (tk == NULL) {
                 tk = *tkp = xcalloc(1, sizeof *tk);                  tk = *tkp = xcalloc(1, sizeof *tk);
                 tk->ch = *s;                  tk->ch = *s;
                 tk->key = KEYC_NONE;                  tk->key = KEYC_UNKNOWN;
         }          }
   
         /* Find the next entry. */          /* Find the next entry. */
Line 444 
Line 444 
                 (*size)++;                  (*size)++;
   
                 /* At the end of the string, return the current node. */                  /* At the end of the string, return the current node. */
                 if (len == 0 || (tk->next == NULL && tk->key != KEYC_NONE))                  if (len == 0 || (tk->next == NULL && tk->key != KEYC_UNKNOWN))
                         return (tk);                          return (tk);
   
                 /* Move into the next tree for the following character. */                  /* Move into the next tree for the following character. */
Line 534 
Line 534 
                         if (tk->next != NULL)                          if (tk->next != NULL)
                                 goto partial_key;                                  goto partial_key;
                         key = tk->key;                          key = tk->key;
                         if (key != KEYC_NONE)                          if (key != KEYC_UNKNOWN)
                                 key |= KEYC_ESCAPE;                                  key |= KEYC_ESCAPE;
                         goto complete_key;                          goto complete_key;
                 }                  }
Line 620 
Line 620 
         }          }
   
         /* Fire the key. */          /* Fire the key. */
         if (key != KEYC_NONE)          if (key != KEYC_UNKNOWN)
                 server_client_handle_key(tty->client, key);                  server_client_handle_key(tty->client, key);
   
         return (1);          return (1);

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83