[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.275 and 1.276

version 1.275, 2021/02/22 07:09:06 version 1.276, 2021/02/22 08:18:13
Line 1412 
Line 1412 
         return (NULL);          return (NULL);
 }  }
   
   /* Callback for config_files. */
   static void *
   format_cb_config_files(__unused struct format_tree *ft)
   {
           char    *s = NULL;
           size_t   slen = 0;
           u_int    i;
           size_t   n;
   
           for (i = 0; i < cfg_nfiles; i++) {
                   n = strlen(cfg_files[i]) + 1;
                   s = xrealloc(s, slen + n + 1);
                   slen += xsnprintf(s + slen, n + 1, "%s,", cfg_files[i]);
           }
           if (s == NULL)
                   return (xstrdup(""));
           s[slen - 1] = '\0';
           return (s);
   }
   
 /* Callback for cursor_flag. */  /* Callback for cursor_flag. */
 static void *  static void *
 format_cb_cursor_flag(struct format_tree *ft)  format_cb_cursor_flag(struct format_tree *ft)
Line 2568 
Line 2588 
         },          },
         { "client_written", FORMAT_TABLE_STRING,          { "client_written", FORMAT_TABLE_STRING,
           format_cb_client_written            format_cb_client_written
           },
           { "config_files", FORMAT_TABLE_STRING,
             format_cb_config_files
         },          },
         { "cursor_character", FORMAT_TABLE_STRING,          { "cursor_character", FORMAT_TABLE_STRING,
           format_cb_cursor_character            format_cb_cursor_character

Legend:
Removed from v.1.275  
changed lines
  Added in v.1.276