[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.110 and 1.111

version 1.110, 2014/02/14 13:59:01 version 1.111, 2014/03/31 21:41:35
Line 655 
Line 655 
 status_message_set(struct client *c, const char *fmt, ...)  status_message_set(struct client *c, const char *fmt, ...)
 {  {
         struct timeval           tv;          struct timeval           tv;
         struct session          *s = c->session;  
         struct message_entry    *msg;          struct message_entry    *msg;
         va_list                  ap;          va_list                  ap;
         int                      delay;          int                      delay;
Line 673 
Line 672 
         msg->msg_time = time(NULL);          msg->msg_time = time(NULL);
         msg->msg = xstrdup(c->message_string);          msg->msg = xstrdup(c->message_string);
   
         if (s == NULL)          limit = options_get_number(&global_options, "message-limit");
                 limit = 0;  
         else  
                 limit = options_get_number(&s->options, "message-limit");  
         if (ARRAY_LENGTH(&c->message_log) > limit) {          if (ARRAY_LENGTH(&c->message_log) > limit) {
                 limit = ARRAY_LENGTH(&c->message_log) - limit;                  limit = ARRAY_LENGTH(&c->message_log) - limit;
                 for (i = 0; i < limit; i++) {                  for (i = 0; i < limit; i++) {

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111