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

Diff for /src/usr.bin/tmux/tty.c between version 1.181 and 1.182

version 1.181, 2015/05/06 07:52:06 version 1.182, 2015/05/12 22:40:38
Line 723 
Line 723 
         tty_update_mode(tty, tty->mode, s);          tty_update_mode(tty, tty->mode, s);
 }  }
   
   int
   tty_client_ready(struct client *c, struct window_pane *wp)
   {
           if (c->session == NULL || c->tty.term == NULL)
                   return (0);
           if (c->flags & CLIENT_SUSPENDED)
                   return (0);
           if (c->tty.flags & TTY_FREEZE)
                   return (0);
           if (c->session->curw->window != wp->window)
                   return (0);
           return (1);
   }
   
 void  void
 tty_write(  tty_write(void (*cmdfn)(struct tty *, const struct tty_ctx *),
     void (*cmdfn)(struct tty *, const struct tty_ctx *), struct tty_ctx *ctx)      struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct client           *c;          struct client           *c;
Line 740 
Line 754 
                 return;                  return;
   
         TAILQ_FOREACH(c, &clients, entry) {          TAILQ_FOREACH(c, &clients, entry) {
                 if (c->session == NULL || c->tty.term == NULL)                  if (!tty_client_ready(c, wp))
                         continue;  
                 if (c->flags & CLIENT_SUSPENDED)  
                         continue;  
                 if (c->tty.flags & TTY_FREEZE)  
                         continue;  
                 if (c->session->curw->window != wp->window)  
                         continue;                          continue;
   
                 ctx->xoff = wp->xoff;                  ctx->xoff = wp->xoff;

Legend:
Removed from v.1.181  
changed lines
  Added in v.1.182