[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.21 and 1.22

version 1.21, 2017/04/21 14:09:44 version 1.22, 2017/04/21 20:26:34
Line 44 
Line 44 
         struct session          *s = ne->session;          struct session          *s = ne->session;
         struct window           *w = ne->window;          struct window           *w = ne->window;
   
         cmd_find_clear_state(&fs, NULL, 0);          cmd_find_clear_state(&fs, 0);
         if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs))          if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs))
                 cmd_find_current(&fs, item, CMD_FIND_QUIET);                  cmd_find_from_nothing(&fs);
         else          else
                 cmd_find_copy_state(&fs, &ne->fs);                  cmd_find_copy_state(&fs, &ne->fs);
   
Line 164 
Line 164 
 {  {
         struct cmd_find_state   fs;          struct cmd_find_state   fs;
   
         if (c->session != NULL)          cmd_find_from_client(&fs, c);
                 cmd_find_from_session(&fs, c->session);  
         else  
                 cmd_find_current(&fs, NULL, CMD_FIND_QUIET);  
         notify_add(name, &fs, c, NULL, NULL, NULL);          notify_add(name, &fs, c, NULL, NULL, NULL);
 }  }
   
Line 179 
Line 176 
         if (session_alive(s))          if (session_alive(s))
                 cmd_find_from_session(&fs, s);                  cmd_find_from_session(&fs, s);
         else          else
                 cmd_find_current(&fs, NULL, CMD_FIND_QUIET);                  cmd_find_from_nothing(&fs);
         notify_add(name, &fs, NULL, s, NULL, NULL);          notify_add(name, &fs, NULL, s, NULL, NULL);
 }  }
   

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22