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

Diff for /src/usr.bin/tmux/window-tree.c between version 1.33 and 1.34

version 1.33, 2019/03/07 20:24:21 version 1.34, 2019/03/12 20:02:47
Line 476 
Line 476 
         oy = (sy + 1) / 2;          oy = (sy + 1) / 2;
   
         if (ox > 1 && ox + len < sx - 1 && sy >= 3) {          if (ox > 1 && ox + len < sx - 1 && sy >= 3) {
                 screen_write_cursormove(ctx, px + ox - 1, py + oy - 1);                  screen_write_cursormove(ctx, px + ox - 1, py + oy - 1, 0);
                 screen_write_box(ctx, len + 2, 3);                  screen_write_box(ctx, len + 2, 3);
         }          }
         screen_write_cursormove(ctx, px + ox, py + oy);          screen_write_cursormove(ctx, px + ox, py + oy, 0);
         screen_write_puts(ctx, gc, "%s", label);          screen_write_puts(ctx, gc, "%s", label);
 }  }
   
Line 554 
Line 554 
   
         if (left) {          if (left) {
                 data->left = cx + 2;                  data->left = cx + 2;
                 screen_write_cursormove(ctx, cx + 2, cy);                  screen_write_cursormove(ctx, cx + 2, cy, 0);
                 screen_write_vline(ctx, sy, 0, 0);                  screen_write_vline(ctx, sy, 0, 0);
                 screen_write_cursormove(ctx, cx, cy + sy / 2);                  screen_write_cursormove(ctx, cx, cy + sy / 2, 0);
                 screen_write_puts(ctx, &grid_default_cell, "<");                  screen_write_puts(ctx, &grid_default_cell, "<");
         } else          } else
                 data->left = -1;                  data->left = -1;
         if (right) {          if (right) {
                 data->right = cx + sx - 3;                  data->right = cx + sx - 3;
                 screen_write_cursormove(ctx, cx + sx - 3, cy);                  screen_write_cursormove(ctx, cx + sx - 3, cy, 0);
                 screen_write_vline(ctx, sy, 0, 0);                  screen_write_vline(ctx, sy, 0, 0);
                 screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2);                  screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2, 0);
                 screen_write_puts(ctx, &grid_default_cell, ">");                  screen_write_puts(ctx, &grid_default_cell, ">");
         } else          } else
                 data->right = -1;                  data->right = -1;
Line 597 
Line 597 
                 else                  else
                         width = each - 1;                          width = each - 1;
   
                 screen_write_cursormove(ctx, cx + offset, cy);                  screen_write_cursormove(ctx, cx + offset, cy, 0);
                 screen_write_preview(ctx, &w->active->base, width, sy);                  screen_write_preview(ctx, &w->active->base, width, sy);
   
                 xasprintf(&label, " %u:%s ", wl->idx, w->name);                  xasprintf(&label, " %u:%s ", wl->idx, w->name);
Line 608 
Line 608 
                 free(label);                  free(label);
   
                 if (loop != end - 1) {                  if (loop != end - 1) {
                         screen_write_cursormove(ctx, cx + offset + width, cy);                          screen_write_cursormove(ctx, cx + offset + width, cy, 0);
                         screen_write_vline(ctx, sy, 0, 0);                          screen_write_vline(ctx, sy, 0, 0);
                 }                  }
                 loop++;                  loop++;
Line 687 
Line 687 
   
         if (left) {          if (left) {
                 data->left = cx + 2;                  data->left = cx + 2;
                 screen_write_cursormove(ctx, cx + 2, cy);                  screen_write_cursormove(ctx, cx + 2, cy, 0);
                 screen_write_vline(ctx, sy, 0, 0);                  screen_write_vline(ctx, sy, 0, 0);
                 screen_write_cursormove(ctx, cx, cy + sy / 2);                  screen_write_cursormove(ctx, cx, cy + sy / 2, 0);
                 screen_write_puts(ctx, &grid_default_cell, "<");                  screen_write_puts(ctx, &grid_default_cell, "<");
         } else          } else
                 data->left = -1;                  data->left = -1;
         if (right) {          if (right) {
                 data->right = cx + sx - 3;                  data->right = cx + sx - 3;
                 screen_write_cursormove(ctx, cx + sx - 3, cy);                  screen_write_cursormove(ctx, cx + sx - 3, cy, 0);
                 screen_write_vline(ctx, sy, 0, 0);                  screen_write_vline(ctx, sy, 0, 0);
                 screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2);                  screen_write_cursormove(ctx, cx + sx - 1, cy + sy / 2, 0);
                 screen_write_puts(ctx, &grid_default_cell, ">");                  screen_write_puts(ctx, &grid_default_cell, ">");
         } else          } else
                 data->right = -1;                  data->right = -1;
Line 729 
Line 729 
                 else                  else
                         width = each - 1;                          width = each - 1;
   
                 screen_write_cursormove(ctx, cx + offset, cy);                  screen_write_cursormove(ctx, cx + offset, cy, 0);
                 screen_write_preview(ctx, &wp->base, width, sy);                  screen_write_preview(ctx, &wp->base, width, sy);
   
                 if (window_pane_index(wp, &pane_idx) != 0)                  if (window_pane_index(wp, &pane_idx) != 0)
Line 740 
Line 740 
                 free(label);                  free(label);
   
                 if (loop != end - 1) {                  if (loop != end - 1) {
                         screen_write_cursormove(ctx, cx + offset + width, cy);                          screen_write_cursormove(ctx, cx + offset + width, cy, 0);
                         screen_write_vline(ctx, sy, 0, 0);                          screen_write_vline(ctx, sy, 0, 0);
                 }                  }
                 loop++;                  loop++;

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34