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

Diff for /src/usr.bin/tmux/mode-tree.c between version 1.6 and 1.7

version 1.6, 2017/06/09 16:01:39 version 1.7, 2017/07/04 12:26:14
Line 445 
Line 445 
 mode_tree_draw(struct mode_tree_data *mtd)  mode_tree_draw(struct mode_tree_data *mtd)
 {  {
         struct window_pane      *wp = mtd->wp;          struct window_pane      *wp = mtd->wp;
         struct screen           *s = &mtd->screen, *box;          struct screen           *s = &mtd->screen, *box = NULL;
         struct mode_tree_line   *line;          struct mode_tree_line   *line;
         struct mode_tree_item   *mti;          struct mode_tree_item   *mti;
         struct options          *oo = wp->window->options;          struct options          *oo = wp->window->options;
Line 571 
Line 571 
         box_x = w - 4;          box_x = w - 4;
         box_y = sy - h - 2;          box_y = sy - h - 2;
   
         box = mtd->drawcb(mtd->modedata, mti->itemdata, box_x, box_y);          if (box_x != 0 && box_y != 0)
                   box = mtd->drawcb(mtd->modedata, mti->itemdata, box_x, box_y);
         if (box != NULL) {          if (box != NULL) {
                 screen_write_cursormove(&ctx, 2, h + 1);                  screen_write_cursormove(&ctx, 2, h + 1);
                 screen_write_copy(&ctx, box, 0, 0, box_x, box_y, NULL, NULL);                  screen_write_copy(&ctx, box, 0, 0, box_x, box_y, NULL, NULL);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7