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

Diff for /src/usr.bin/tmux/notify.c between version 1.15 and 1.16

version 1.15, 2016/10/16 19:15:02 version 1.16, 2016/10/16 19:36:37
Line 59 
Line 59 
         const char              *name;          const char              *name;
         struct cmd_find_state    fs;          struct cmd_find_state    fs;
         struct hook             *hook;          struct hook             *hook;
         struct cmdq_item        *new_item, *loop;          struct cmdq_item        *new_item;
   
         name = notify_hooks[ne->type];          name = notify_hooks[ne->type];
         if (name == NULL)          if (name == NULL)
Line 83 
Line 83 
         log_debug("notify hook %s", name);          log_debug("notify hook %s", name);
   
         new_item = cmdq_get_command(hook->cmdlist, &fs, NULL, CMDQ_NOHOOKS);          new_item = cmdq_get_command(hook->cmdlist, &fs, NULL, CMDQ_NOHOOKS);
           cmdq_format(new_item, "hook", "%s", name);
         for (loop = new_item; loop != NULL; loop = loop->next)  
                 loop->hook = xstrdup(name);  
   
         cmdq_insert_after(item, new_item);          cmdq_insert_after(item, new_item);
 }  }
   

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16