[BACK]Return to cmd-display-panes.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-display-panes.c between version 1.44 and 1.45

version 1.44, 2021/08/25 08:51:55 version 1.45, 2022/06/30 09:55:53
Line 144 
Line 144 
                 llen = 0;                  llen = 0;
   
         if (sx < len * 6 || sy < 5) {          if (sx < len * 6 || sy < 5) {
                 tty_attributes(tty, &fgc, &grid_default_cell, NULL);                  tty_attributes(tty, &fgc, &grid_default_cell, NULL, NULL);
                 if (sx >= len + llen + 1) {                  if (sx >= len + llen + 1) {
                         len += llen + 1;                          len += llen + 1;
                         tty_cursor(tty, xoff + px - len / 2, yoff + py);                          tty_cursor(tty, xoff + px - len / 2, yoff + py);
Line 161 
Line 161 
         px -= len * 3;          px -= len * 3;
         py -= 2;          py -= 2;
   
         tty_attributes(tty, &bgc, &grid_default_cell, NULL);          tty_attributes(tty, &bgc, &grid_default_cell, NULL, NULL);
         for (ptr = buf; *ptr != '\0'; ptr++) {          for (ptr = buf; *ptr != '\0'; ptr++) {
                 if (*ptr < '0' || *ptr > '9')                  if (*ptr < '0' || *ptr > '9')
                         continue;                          continue;
Line 179 
Line 179 
   
         if (sy <= 6)          if (sy <= 6)
                 goto out;                  goto out;
         tty_attributes(tty, &fgc, &grid_default_cell, NULL);          tty_attributes(tty, &fgc, &grid_default_cell, NULL, NULL);
         if (rlen != 0 && sx >= rlen) {          if (rlen != 0 && sx >= rlen) {
                 tty_cursor(tty, xoff + sx - rlen, yoff);                  tty_cursor(tty, xoff + sx - rlen, yoff);
                 tty_putn(tty, rbuf, rlen, rlen);                  tty_putn(tty, rbuf, rlen, rlen);

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45