[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.11 and 1.12

version 1.11, 2013/01/18 02:16:21 version 1.12, 2013/02/05 11:01:45
Line 365 
Line 365 
         unsigned long long       size;          unsigned long long       size;
         u_int                    i;          u_int                    i;
         u_int                    idx;          u_int                    idx;
           const char              *cwd;
   
         size = 0;          size = 0;
         for (i = 0; i < gd->hsize; i++) {          for (i = 0; i < gd->hsize; i++) {
Line 390 
Line 391 
                 format_add(ft, "pane_start_command", "%s", wp->cmd);                  format_add(ft, "pane_start_command", "%s", wp->cmd);
         if (wp->cwd != NULL)          if (wp->cwd != NULL)
                 format_add(ft, "pane_start_path", "%s", wp->cwd);                  format_add(ft, "pane_start_path", "%s", wp->cwd);
         format_add(ft, "pane_current_path", "%s", get_proc_cwd(wp->fd));          if ((cwd = get_proc_cwd(wp->fd)) != NULL)
                   format_add(ft, "pane_current_path", "%s", cwd);
         format_add(ft, "pane_pid", "%ld", (long) wp->pid);          format_add(ft, "pane_pid", "%ld", (long) wp->pid);
         format_add(ft, "pane_tty", "%s", wp->tty);          if (wp->tty != NULL)
                   format_add(ft, "pane_tty", "%s", wp->tty);
 }  }
   
 void  void

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12