[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.58 and 1.59

version 1.58, 2013/03/25 11:44:16 version 1.59, 2013/03/26 14:14:08
Line 448 
Line 448 
         const char      *buf;          const char      *buf;
         size_t           len, size;          size_t           len, size;
         cc_t             bspace;          cc_t             bspace;
         int              key, delay;          int              key, delay, expired = 0;
   
         /* Get key buffer. */          /* Get key buffer. */
         buf = EVBUFFER_DATA(tty->event->input);          buf = EVBUFFER_DATA(tty->event->input);
Line 508 
Line 508 
                 }                  }
   
                 tk = tty_keys_find(tty, buf + 1, len - 1, &size);                  tk = tty_keys_find(tty, buf + 1, len - 1, &size);
                 if (tk != NULL) {                  if (tk != NULL && (!expired || tk->next == NULL)) {
                         size++; /* include escape */                          size++; /* include escape */
                         if (tk->next != NULL)                          if (tk->next != NULL)
                                 goto partial_key;                                  goto partial_key;
Line 540 
Line 540 
         /* If timer is going, check for expiration. */          /* If timer is going, check for expiration. */
         if (tty->flags & TTY_TIMER) {          if (tty->flags & TTY_TIMER) {
                 if (evtimer_initialized(&tty->key_timer) &&                  if (evtimer_initialized(&tty->key_timer) &&
                     !evtimer_pending(&tty->key_timer, NULL))                      !evtimer_pending(&tty->key_timer, NULL)) {
                           expired = 1;
                         goto first_key;                          goto first_key;
                   }
                 return (0);                  return (0);
         }          }
   

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59