[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.42 and 1.43

version 1.42, 2022/08/15 09:10:34 version 1.43, 2022/10/28 13:00:02
Line 153 
Line 153 
                 control_notify_session_window_changed(ne->session);                  control_notify_session_window_changed(ne->session);
         if (strcmp(ne->name, "paste-buffer-changed") == 0)          if (strcmp(ne->name, "paste-buffer-changed") == 0)
                 control_notify_paste_buffer_changed(ne->pbname);                  control_notify_paste_buffer_changed(ne->pbname);
           if (strcmp(ne->name, "paste-buffer-deleted") == 0)
                   control_notify_paste_buffer_deleted(ne->pbname);
   
         notify_insert_hook(item, ne);          notify_insert_hook(item, ne);
   
Line 307 
Line 309 
 }  }
   
 void  void
 notify_paste_buffer(const char *pbname)  notify_paste_buffer(const char *pbname, int deleted)
 {  {
         struct cmd_find_state   fs;          struct cmd_find_state   fs;
   
         cmd_find_clear_state(&fs, 0);          cmd_find_clear_state(&fs, 0);
         notify_add("paste-buffer-changed", &fs, NULL, NULL, NULL, NULL, pbname);          if (deleted) {
                   notify_add("paste-buffer-deleted", &fs, NULL, NULL, NULL, NULL,
                       pbname);
           } else {
                   notify_add("paste-buffer-changed", &fs, NULL, NULL, NULL, NULL,
                       pbname);
           }
 }  }

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43