[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.43 and 1.44

version 1.43, 2012/08/21 10:08:11 version 1.44, 2012/09/03 06:26:48
Line 533 
Line 533 
          * timer has expired, give up waiting and send the escape.           * timer has expired, give up waiting and send the escape.
          */           */
         if ((tty->flags & TTY_ESCAPE) &&          if ((tty->flags & TTY_ESCAPE) &&
               evtimer_initialized(&tty->key_timer) &&
             !evtimer_pending(&tty->key_timer, NULL)) {              !evtimer_pending(&tty->key_timer, NULL)) {
                 evbuffer_drain(tty->event->input, 1);                  evbuffer_drain(tty->event->input, 1);
                 key = '\033';                  key = '\033';
Line 543 
Line 544 
   
 start_timer:  start_timer:
         /* If already waiting for timer, do nothing. */          /* If already waiting for timer, do nothing. */
         if (evtimer_pending(&tty->key_timer, NULL))          if (evtimer_initialized(&tty->key_timer) &&
               evtimer_pending(&tty->key_timer, NULL))
                 return (0);                  return (0);
   
         /* Start the timer and wait for expiry or more data. */          /* Start the timer and wait for expiry or more data. */

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44