[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.34 and 1.35

version 1.34, 2020/04/13 15:55:51 version 1.35, 2020/04/14 06:00:52
Line 158 
Line 158 
     struct session *s, struct window *w, struct window_pane *wp)      struct session *s, struct window *w, struct window_pane *wp)
 {  {
         struct notify_entry     *ne;          struct notify_entry     *ne;
         struct cmdq_item        *new_item;          struct cmdq_item        *item;
   
           item = cmdq_running(NULL);
           if (item != NULL && (cmdq_get_flags(item) & CMDQ_STATE_NOHOOKS))
                   return;
   
         ne = xcalloc(1, sizeof *ne);          ne = xcalloc(1, sizeof *ne);
         ne->name = xstrdup(name);          ne->name = xstrdup(name);
   
Line 183 
Line 187 
         if (ne->fs.s != NULL) /* cmd_find_valid_state needs session */          if (ne->fs.s != NULL) /* cmd_find_valid_state needs session */
                 session_add_ref(ne->fs.s, __func__);                  session_add_ref(ne->fs.s, __func__);
   
         new_item = cmdq_get_callback(notify_callback, ne);          cmdq_append(NULL, cmdq_get_callback(notify_callback, ne));
         cmdq_append(NULL, new_item);  
 }  }
   
 void  void

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35