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

Diff for /src/usr.bin/tmux/status.c between version 1.92 and 1.93

version 1.92, 2012/04/29 07:33:41 version 1.93, 2012/07/09 09:55:57
Line 515 
Line 515 
         char            in[BUFSIZ], ch, *iptr, *optr;          char            in[BUFSIZ], ch, *iptr, *optr;
         size_t          len;          size_t          len;
   
           if (fmt == NULL)
                   return (xstrdup(""));
   
         len = strftime(in, sizeof in, fmt, localtime(&t));          len = strftime(in, sizeof in, fmt, localtime(&t));
         in[len] = '\0';          in[len] = '\0';
   
Line 877 
Line 880 
         c->prompt_string = status_replace(c, NULL, NULL, NULL, msg,          c->prompt_string = status_replace(c, NULL, NULL, NULL, msg,
             time(NULL), 0);              time(NULL), 0);
   
         if (input == NULL)  
                 input = "";  
         c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,          c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,
             time(NULL), 0);              time(NULL), 0);
         c->prompt_index = strlen(c->prompt_buffer);          c->prompt_index = strlen(c->prompt_buffer);
Line 932 
Line 933 
             time(NULL), 0);              time(NULL), 0);
   
         xfree(c->prompt_buffer);          xfree(c->prompt_buffer);
         if (input == NULL)  
                 input = "";  
         c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,          c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,
             time(NULL), 0);              time(NULL), 0);
         c->prompt_index = strlen(c->prompt_buffer);          c->prompt_index = strlen(c->prompt_buffer);

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93