[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.187 and 1.188

version 1.187, 2019/03/16 17:14:07 version 1.188, 2019/03/16 17:53:55
Line 323 
Line 323 
   
 /* Save as old status line. */  /* Save as old status line. */
 static void  static void
 status_save_old(struct status_line *sl)  status_save_old(struct client *c)
 {  {
           struct status_line *sl = &c->status;
   
         if (sl->old_screen == NULL) {          if (sl->old_screen == NULL) {
                 sl->old_screen = xmalloc(sizeof *sl->old_screen);                  sl->old_screen = xmalloc(sizeof *sl->old_screen);
                 memcpy(sl->old_screen, &sl->screen, sizeof *sl->old_screen);                  memcpy(sl->old_screen, &sl->screen, sizeof *sl->old_screen);
                   screen_init(&c->status.screen, c->tty.sx, 1, 0);
         }          }
 }  }
   
 /* Free old status line. */  /* Free old status line. */
 static void  static void
 status_free_old(struct status_line *sl)  status_free_old(struct client *c)
 {  {
           struct status_line *sl = &c->status;
   
         if (sl->old_screen != NULL) {          if (sl->old_screen != NULL) {
                 screen_free(sl->old_screen);                  screen_free(sl->old_screen);
                 free(sl->old_screen);                  free(sl->old_screen);
Line 361 
Line 366 
         int                      larrow, rarrow;          int                      larrow, rarrow;
   
         /* Delete the saved status line, if any. */          /* Delete the saved status line, if any. */
         status_free_old(sl);          status_free_old(c);
   
         /* No status line? */          /* No status line? */
         lines = status_line_size(c);          lines = status_line_size(c);
Line 629 
Line 634 
         int             delay;          int             delay;
   
         status_message_clear(c);          status_message_clear(c);
           status_save_old(c);
   
         status_save_old(&c->status);  
         screen_init(&c->status.screen, c->tty.sx, 1, 0);  
   
         va_start(ap, fmt);          va_start(ap, fmt);
         xvasprintf(&c->message_string, fmt, ap);          xvasprintf(&c->message_string, fmt, ap);
         va_end(ap);          va_end(ap);
Line 744 
Line 747 
   
         status_message_clear(c);          status_message_clear(c);
         status_prompt_clear(c);          status_prompt_clear(c);
           status_save_old(c);
         status_save_old(&c->status);  
         screen_init(&c->status.screen, c->tty.sx, 1, 0);  
   
         c->prompt_string = format_expand_time(ft, msg);          c->prompt_string = format_expand_time(ft, msg);
   

Legend:
Removed from v.1.187  
changed lines
  Added in v.1.188