[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.220 and 1.221

version 1.220, 2021/02/22 06:53:04 version 1.221, 2021/04/12 09:36:12
Line 424 
Line 424 
 /* Set a status line message. */  /* Set a status line message. */
 void  void
 status_message_set(struct client *c, int delay, int ignore_styles,  status_message_set(struct client *c, int delay, int ignore_styles,
     const char *fmt, ...)      int ignore_keys, const char *fmt, ...)
 {  {
         struct timeval  tv;          struct timeval  tv;
         va_list         ap;          va_list         ap;
Line 433 
Line 433 
         status_push_screen(c);          status_push_screen(c);
   
         va_start(ap, fmt);          va_start(ap, fmt);
         c->message_ignore_styles = ignore_styles;  
         xvasprintf(&c->message_string, fmt, ap);          xvasprintf(&c->message_string, fmt, ap);
         va_end(ap);          va_end(ap);
   
Line 455 
Line 454 
   
                 evtimer_add(&c->message_timer, &tv);                  evtimer_add(&c->message_timer, &tv);
         }          }
   
           if (delay != 0)
                   c->message_ignore_keys = ignore_keys;
           c->message_ignore_styles = ignore_styles;
   
         c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);          c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);
         c->flags |= CLIENT_REDRAWSTATUS;          c->flags |= CLIENT_REDRAWSTATUS;

Legend:
Removed from v.1.220  
changed lines
  Added in v.1.221