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

Diff for /src/usr.bin/tmux/format.c between version 1.288 and 1.289

version 1.288, 2021/07/13 22:09:29 version 1.289, 2021/08/12 08:05:11
Line 929 
Line 929 
         struct window_pane      *wp = ft->wp;          struct window_pane      *wp = ft->wp;
         struct grid_cell         gc;          struct grid_cell         gc;
   
           if (wp == NULL)
                   return (NULL);
   
         tty_default_colours(&gc, wp);          tty_default_colours(&gc, wp);
         return (xstrdup(colour_tostring(gc.fg)));          return (xstrdup(colour_tostring(gc.fg)));
 }  }
Line 940 
Line 943 
         struct window_pane      *wp = ft->wp;          struct window_pane      *wp = ft->wp;
         struct grid_cell         gc;          struct grid_cell         gc;
   
           if (wp == NULL)
                   return (NULL);
   
         tty_default_colours(&gc, wp);          tty_default_colours(&gc, wp);
         return (xstrdup(colour_tostring(gc.bg)));          return (xstrdup(colour_tostring(gc.bg)));
 }  }
Line 3077 
Line 3083 
         if (ft->client != NULL)          if (ft->client != NULL)
                 server_client_unref(ft->client);                  server_client_unref(ft->client);
         free(ft);          free(ft);
   }
   
   /* Log each format. */
   static void
   format_log_debug_cb(const char *key, const char *value, void *arg)
   {
           const char      *prefix = arg;
   
           log_debug("%s: %s=%s", prefix, key, value);
   }
   
   /* Log a format tree. */
   void
   format_log_debug(struct format_tree *ft, const char *prefix)
   {
           format_each(ft, format_log_debug_cb, prefix);
 }  }
   
 /* Walk each format. */  /* Walk each format. */

Legend:
Removed from v.1.288  
changed lines
  Added in v.1.289