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

Diff for /src/usr.bin/tmux/grid.c between version 1.86 and 1.87

version 1.86, 2018/07/11 06:51:39 version 1.87, 2018/10/18 07:57:57
Line 764 
Line 764 
                 { GRID_ATTR_BLINK, 5 },                  { GRID_ATTR_BLINK, 5 },
                 { GRID_ATTR_REVERSE, 7 },                  { GRID_ATTR_REVERSE, 7 },
                 { GRID_ATTR_HIDDEN, 8 },                  { GRID_ATTR_HIDDEN, 8 },
                 { GRID_ATTR_STRIKETHROUGH, 9 }                  { GRID_ATTR_STRIKETHROUGH, 9 },
                   { GRID_ATTR_UNDERSCORE_2, 42 },
                   { GRID_ATTR_UNDERSCORE_3, 43 },
                   { GRID_ATTR_UNDERSCORE_4, 44 },
                   { GRID_ATTR_UNDERSCORE_5, 45 },
         };          };
         n = 0;          n = 0;
   
Line 790 
Line 794 
                 else                  else
                         strlcat(buf, "\033[", len);                          strlcat(buf, "\033[", len);
                 for (i = 0; i < n; i++) {                  for (i = 0; i < n; i++) {
                         if (i + 1 < n)                          if (s[i] < 10)
                                 xsnprintf(tmp, sizeof tmp, "%d;", s[i]);  
                         else  
                                 xsnprintf(tmp, sizeof tmp, "%d", s[i]);                                  xsnprintf(tmp, sizeof tmp, "%d", s[i]);
                           else {
                                   xsnprintf(tmp, sizeof tmp, "%d:%d", s[i] / 10,
                                       s[i] % 10);
                           }
                         strlcat(buf, tmp, len);                          strlcat(buf, tmp, len);
                           if (i + 1 < n)
                                   strlcat(buf, ";", len);
                 }                  }
                 strlcat(buf, "m", len);                  strlcat(buf, "m", len);
         }          }

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87