[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.328 and 1.329

version 1.328, 2019/06/27 15:17:41 version 1.329, 2019/07/16 14:11:52
Line 1217 
Line 1217 
         const struct grid_cell  *gcp;          const struct grid_cell  *gcp;
         struct grid_line        *gl;          struct grid_line        *gl;
         u_int                    i, j, ux, sx, width;          u_int                    i, j, ux, sx, width;
         int                      flags, cleared = 0;          int                      flags, cleared = 0, wrapped = 0;
         char                     buf[512];          char                     buf[512];
         size_t                   len;          size_t                   len;
         u_int                    cellsize;          u_int                    cellsize;
Line 1274 
Line 1274 
                         tty_putcode(tty, TTYC_EL1);                          tty_putcode(tty, TTYC_EL1);
                         cleared = 1;                          cleared = 1;
                 }                  }
         } else          } else {
                 log_debug("%s: wrapped line %u", __func__, aty);                  log_debug("%s: wrapped line %u", __func__, aty);
                   wrapped = 1;
           }
   
         memcpy(&last, &grid_default_cell, sizeof last);          memcpy(&last, &grid_default_cell, sizeof last);
         len = 0;          len = 0;
Line 1299 
Line 1301 
                                 tty_clear_line(tty, wp, aty, atx + ux, width,                                  tty_clear_line(tty, wp, aty, atx + ux, width,
                                     last.bg);                                      last.bg);
                         } else {                          } else {
                                 tty_cursor(tty, atx + ux, aty);                                  if (!wrapped || atx != 0 || ux != 0)
                                           tty_cursor(tty, atx + ux, aty);
                                 tty_putn(tty, buf, len, width);                                  tty_putn(tty, buf, len, width);
                         }                          }
                         ux += width;                          ux += width;
   
                         len = 0;                          len = 0;
                         width = 0;                          width = 0;
                           wrapped = 0;
                 }                  }
   
                 if (gcp->flags & GRID_FLAG_SELECTED)                  if (gcp->flags & GRID_FLAG_SELECTED)
Line 1339 
Line 1343 
                         log_debug("%s: %zu cleared (end)", __func__, len);                          log_debug("%s: %zu cleared (end)", __func__, len);
                         tty_clear_line(tty, wp, aty, atx + ux, width, last.bg);                          tty_clear_line(tty, wp, aty, atx + ux, width, last.bg);
                 } else {                  } else {
                         tty_cursor(tty, atx + ux, aty);                          if (!wrapped || atx != 0 || ux != 0)
                                   tty_cursor(tty, atx + ux, aty);
                         tty_putn(tty, buf, len, width);                          tty_putn(tty, buf, len, width);
                 }                  }
                 ux += width;                  ux += width;

Legend:
Removed from v.1.328  
changed lines
  Added in v.1.329