[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.3 and 1.4

version 1.3, 2009/06/03 16:54:26 version 1.4, 2009/06/04 21:43:24
Line 597 
Line 597 
         xfree(c->prompt_string);          xfree(c->prompt_string);
         c->prompt_string = NULL;          c->prompt_string = NULL;
   
           if (c->prompt_flags & PROMPT_HIDDEN)
                   memset(c->prompt_buffer, 0, strlen(c->prompt_buffer));
         xfree(c->prompt_buffer);          xfree(c->prompt_buffer);
         c->prompt_buffer = NULL;          c->prompt_buffer = NULL;
   
Line 794 
Line 796 
   
                 if (ARRAY_LENGTH(&c->prompt_hdata) == 0)                  if (ARRAY_LENGTH(&c->prompt_hdata) == 0)
                         break;                          break;
                   if (c->prompt_flags & PROMPT_HIDDEN)
                           memset(c->prompt_buffer, 0, strlen(c->prompt_buffer));
                 xfree(c->prompt_buffer);                  xfree(c->prompt_buffer);
   
                 c->prompt_buffer = xstrdup(ARRAY_ITEM(&c->prompt_hdata,                  c->prompt_buffer = xstrdup(ARRAY_ITEM(&c->prompt_hdata,
Line 808 
Line 812 
                 if (server_locked)                  if (server_locked)
                         break;                          break;
   
                   if (c->prompt_flags & PROMPT_HIDDEN)
                           memset(c->prompt_buffer, 0, strlen(c->prompt_buffer));
                 xfree(c->prompt_buffer);                  xfree(c->prompt_buffer);
   
                 if (c->prompt_hindex != 0) {                  if (c->prompt_hindex != 0) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4