[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.76 and 1.77

version 1.76, 2011/07/02 21:05:44 version 1.77, 2011/07/08 06:37:57
Line 824 
Line 824 
         status_message_clear(c);          status_message_clear(c);
         status_prompt_clear(c);          status_prompt_clear(c);
   
         c->prompt_string = xstrdup(msg);          c->prompt_string = status_replace(c, NULL, NULL, NULL, msg,
               time(NULL), 0);
   
         if (input != NULL)          if (input == NULL)
                 c->prompt_buffer = xstrdup(input);                  input = "";
         else          c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,
                 c->prompt_buffer = xstrdup("");              time(NULL), 0);
         c->prompt_index = strlen(c->prompt_buffer);          c->prompt_index = strlen(c->prompt_buffer);
   
         c->prompt_callbackfn = callbackfn;          c->prompt_callbackfn = callbackfn;
Line 877 
Line 878 
 status_prompt_update(struct client *c, const char *msg, const char *input)  status_prompt_update(struct client *c, const char *msg, const char *input)
 {  {
         xfree(c->prompt_string);          xfree(c->prompt_string);
         c->prompt_string = xstrdup(msg);          c->prompt_string = status_replace(c, NULL, NULL, NULL, msg,
               time(NULL), 0);
   
         xfree(c->prompt_buffer);          xfree(c->prompt_buffer);
         if (input != NULL)          if (input == NULL)
                 c->prompt_buffer = xstrdup(input);                  input = "";
         else          c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input,
                 c->prompt_buffer = xstrdup("");              time(NULL), 0);
         c->prompt_index = strlen(c->prompt_buffer);          c->prompt_index = strlen(c->prompt_buffer);
   
         c->prompt_hindex = 0;          c->prompt_hindex = 0;

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77