[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.394 and 1.395

version 1.394, 2021/08/05 09:43:51 version 1.395, 2021/08/06 03:13:05
Line 1349 
Line 1349 
         struct grid_line        *gl;          struct grid_line        *gl;
         struct client           *c = tty->client;          struct client           *c = tty->client;
         u_int                    i, j, ux, sx, width;          u_int                    i, j, ux, sx, width;
         int                      flags, cleared = 0, wrapped = 0;          int                      flags, cleared = 0, wrapped = 0, hidden;
         char                     buf[512];          char                     buf[512];
         size_t                   len;          size_t                   len;
         u_int                    cellsize;          u_int                    cellsize;
Line 1449 
Line 1449 
                         screen_select_cell(s, &last, gcp);                          screen_select_cell(s, &last, gcp);
                 else                  else
                         memcpy(&last, gcp, sizeof last);                          memcpy(&last, gcp, sizeof last);
                 if (!tty_check_overlay(tty, atx + ux, aty)) {  
                         if (~gcp->flags & GRID_FLAG_PADDING)                  hidden = 0;
                                 ux += gcp->data.width;                  for (j = 0; j < gcp->data.width; j++) {
                 } else if (ux + gcp->data.width > nx) {                          if (!tty_check_overlay(tty, atx + ux + j, aty)) {
                         tty_attributes(tty, &last, defaults, palette);                                  hidden = 1;
                         tty_cursor(tty, atx + ux, aty);                                  break;
                         for (j = 0; j < gcp->data.width; j++) {                          }
                                 if (ux + j > nx)                  }
                                         break;                  if (hidden || ux + gcp->data.width > nx) {
                                 tty_putc(tty, ' ');                          if (~gcp->flags & GRID_FLAG_PADDING) {
                                 ux++;                                  tty_attributes(tty, &last, defaults, palette);
                                   tty_cursor(tty, atx + ux, aty);
                                   for (j = 0; j < gcp->data.width; j++) {
                                           if (ux + j > nx)
                                                   break;
                                           tty_putc(tty, ' ');
                                           ux++;
                                   }
                         }                          }
                 } else if (gcp->attr & GRID_ATTR_CHARSET) {                  } else if (gcp->attr & GRID_ATTR_CHARSET) {
                         tty_attributes(tty, &last, defaults, palette);                          tty_attributes(tty, &last, defaults, palette);

Legend:
Removed from v.1.394  
changed lines
  Added in v.1.395