[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.355 and 1.356

version 1.355, 2020/04/18 06:10:15 version 1.356, 2020/04/18 06:15:07
Line 1438 
Line 1438 
 void  void
 tty_sync_start(struct tty *tty)  tty_sync_start(struct tty *tty)
 {  {
         if ((~tty->flags & TTY_SYNCING) && (tty_get_flags(tty) & TERM_SYNC)) {          if (tty_get_flags(tty) & TERM_SYNC)
                 tty_puts(tty, "\033P=1s\033\\");                  tty_puts(tty, "\033P=1s\033\\");
                 tty->flags |= TTY_SYNCING;  
         }  
 }  }
   
 void  void
 tty_sync_end(struct tty *tty)  tty_sync_end(struct tty *tty)
 {  {
         if (tty_get_flags(tty) & TERM_SYNC) {          if (tty_get_flags(tty) & TERM_SYNC)
                 tty_puts(tty, "\033P=2s\033\\");                  tty_puts(tty, "\033P=2s\033\\");
                 tty->flags &= ~TTY_SYNCING;  
         }  
 }  }
   
 static int  static int
Line 1484 
Line 1480 
         TAILQ_FOREACH(c, &clients, entry) {          TAILQ_FOREACH(c, &clients, entry) {
                 if (!tty_client_ready(c, wp))                  if (!tty_client_ready(c, wp))
                         continue;                          continue;
                 if (c->flags & CLIENT_REDRAWPANES) {  
                         /*  
                          * Redraw is already deferred to redraw another pane -  
                          * redraw this one also when that happens.  
                          */  
                         wp->flags |= PANE_REDRAW;  
                         break;  
                 }  
   
                 ctx->bigger = tty_window_offset(&c->tty, &ctx->ox, &ctx->oy,                  ctx->bigger = tty_window_offset(&c->tty, &ctx->ox, &ctx->oy,
                     &ctx->sx, &ctx->sy);                      &ctx->sx, &ctx->sy);

Legend:
Removed from v.1.355  
changed lines
  Added in v.1.356