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

Diff for /src/usr.bin/tmux/input.c between version 1.30 and 1.31

version 1.30, 2010/12/06 22:51:02 version 1.31, 2010/12/23 20:18:39
Line 720 
Line 720 
                  * Execute the handler, if any. Don't switch state if it                   * Execute the handler, if any. Don't switch state if it
                  * returns non-zero.                   * returns non-zero.
                  */                   */
                 if (itr->handler && itr->handler(ictx) != 0)                  if (itr->handler != NULL && itr->handler(ictx) != 0)
                         continue;                          continue;
   
                 /* And switch state, if necessary. */                  /* And switch state, if necessary. */
                 if (itr->state) {                  if (itr->state != NULL) {
                         if (ictx->state->exit != NULL)                          if (ictx->state->exit != NULL)
                                 ictx->state->exit(ictx);                                  ictx->state->exit(ictx);
                         ictx->state = itr->state;                          ictx->state = itr->state;
Line 924 
Line 924 
 int  int
 input_esc_dispatch(struct input_ctx *ictx)  input_esc_dispatch(struct input_ctx *ictx)
 {  {
         struct screen_write_ctx *sctx = &ictx->ctx;          struct screen_write_ctx         *sctx = &ictx->ctx;
         struct screen           *s = sctx->s;          struct screen                   *s = sctx->s;
         struct input_table_entry       *entry;          struct input_table_entry        *entry;
   
         if (ictx->flags & INPUT_DISCARD)          if (ictx->flags & INPUT_DISCARD)
                 return (0);                  return (0);

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