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

Diff for /src/usr.bin/tmux/menu.c between version 1.1 and 1.2

version 1.1, 2019/05/10 18:04:06 version 1.2, 2019/05/12 07:27:08
Line 103 
Line 103 
 }  }
   
 struct menu *  struct menu *
 menu_create_from_items(struct menu_item *items, u_int count, struct client *c,  menu_create(const char *s, struct client *c, struct cmd_find_state *fs,
     struct cmd_find_state *fs, const char *title)      const char *title)
 {  
         struct menu     *menu;  
         u_int            i;  
   
         menu = xcalloc(1, sizeof *menu);  
         menu->title = xstrdup(title);  
   
         for (i = 0; i < count; i++)  
                 menu_add_item(menu, &items[i], c, fs);  
   
         return (menu);  
 }  
   
 struct menu *  
 menu_create_from_string(const char *s, struct client *c,  
     struct cmd_find_state *fs, const char *title)  
 {  {
         struct menu     *menu;          struct menu     *menu;
         char            *copy, *string, *next;          char            *copy, *string, *next;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2