[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.35 and 1.36

version 1.35, 2013/10/10 12:35:31 version 1.36, 2013/10/10 12:39:24
Line 518 
Line 518 
         struct grid_line        *gl;          struct grid_line        *gl;
         unsigned long long       size;          unsigned long long       size;
         u_int                    i, idx;          u_int                    i, idx;
         const char              *cwd;  
         char                    *cmd;          char                    *cmd;
   
         size = 0;          size = 0;
Line 551 
Line 550 
         format_add(ft, "pane_pid", "%ld", (long) wp->pid);          format_add(ft, "pane_pid", "%ld", (long) wp->pid);
         if (wp->cmd != NULL)          if (wp->cmd != NULL)
                 format_add(ft, "pane_start_command", "%s", wp->cmd);                  format_add(ft, "pane_start_command", "%s", wp->cmd);
         if ((cwd = get_proc_cwd(wp->fd)) != NULL)  
                 format_add(ft, "pane_current_path", "%s", cwd);  
         if ((cmd = format_get_command(wp)) != NULL) {          if ((cmd = format_get_command(wp)) != NULL) {
                 format_add(ft, "pane_current_command", "%s", cmd);                  format_add(ft, "pane_current_command", "%s", cmd);
                 free(cmd);                  free(cmd);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36