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

Diff for /src/usr.bin/tmux/format.c between version 1.146 and 1.147

version 1.146, 2017/08/09 11:43:45 version 1.147, 2017/10/12 11:32:27
Line 1376 
Line 1376 
 format_defaults_pane(struct format_tree *ft, struct window_pane *wp)  format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
 {  {
         struct grid     *gd = wp->base.grid;          struct grid     *gd = wp->base.grid;
           int              status = wp->status;
         u_int            idx;          u_int            idx;
         int              status;  
   
         if (ft->w == NULL)          if (ft->w == NULL)
                 ft->w = wp->window;                  ft->w = wp->window;
Line 1399 
Line 1399 
         format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF));          format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF));
         format_add(ft, "pane_pipe", "%d", wp->pipe_fd != -1);          format_add(ft, "pane_pipe", "%d", wp->pipe_fd != -1);
   
         status = wp->status;          if ((wp->flags & PANE_STATUSREADY) && WIFEXITED(status))
         if (wp->fd == -1 && WIFEXITED(status))  
                 format_add(ft, "pane_dead_status", "%d", WEXITSTATUS(status));                  format_add(ft, "pane_dead_status", "%d", WEXITSTATUS(status));
         format_add(ft, "pane_dead", "%d", wp->fd == -1);          format_add(ft, "pane_dead", "%d", wp->fd == -1);
   
Line 1411 
Line 1410 
                 format_add(ft, "pane_bottom", "%u", wp->yoff + wp->sy - 1);                  format_add(ft, "pane_bottom", "%u", wp->yoff + wp->sy - 1);
                 format_add(ft, "pane_at_left", "%d", wp->xoff == 0);                  format_add(ft, "pane_at_left", "%d", wp->xoff == 0);
                 format_add(ft, "pane_at_top", "%d", wp->yoff == 0);                  format_add(ft, "pane_at_top", "%d", wp->yoff == 0);
                 format_add(ft, "pane_at_right", "%d", wp->xoff + wp->sx == wp->window->sx);                  format_add(ft, "pane_at_right", "%d",
                 format_add(ft, "pane_at_bottom", "%d", wp->yoff + wp->sy == wp->window->sy);                      wp->xoff + wp->sx == wp->window->sx);
                   format_add(ft, "pane_at_bottom", "%d",
                       wp->yoff + wp->sy == wp->window->sy);
         }          }
   
         format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);          format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147