[BACK]Return to screen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen.c between version 1.76 and 1.77

version 1.76, 2021/10/05 12:46:02 version 1.77, 2021/11/01 09:34:49
Line 82 
Line 82 
         s->path = NULL;          s->path = NULL;
   
         s->cstyle = SCREEN_CURSOR_DEFAULT;          s->cstyle = SCREEN_CURSOR_DEFAULT;
         s->ccolour = xstrdup("");          s->ccolour = -1;
           s->default_ccolour = -1;
         s->tabs = NULL;          s->tabs = NULL;
         s->sel = NULL;          s->sel = NULL;
   
Line 126 
Line 127 
         free(s->tabs);          free(s->tabs);
         free(s->path);          free(s->path);
         free(s->title);          free(s->title);
         free(s->ccolour);  
   
         if (s->write_list != NULL)          if (s->write_list != NULL)
                 screen_write_free_list(s);                  screen_write_free_list(s);
Line 190 
Line 190 
   
 /* Set screen cursor colour. */  /* Set screen cursor colour. */
 void  void
 screen_set_cursor_colour(struct screen *s, const char *colour)  screen_set_cursor_colour(struct screen *s, int colour)
 {  {
         free(s->ccolour);          s->ccolour = colour;
         s->ccolour = xstrdup(colour);  
 }  }
   
 /* Set screen title. */  /* Set screen title. */

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