[BACK]Return to cmd-kill-session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-kill-session.c between version 1.15 and 1.16

version 1.15, 2015/09/16 22:40:27 version 1.16, 2015/11/24 21:50:06
Line 31 
Line 31 
   
 const struct cmd_entry cmd_kill_session_entry = {  const struct cmd_entry cmd_kill_session_entry = {
         "kill-session", NULL,          "kill-session", NULL,
         "at:", 0, 0,          "aCt:", 0, 0,
         "[-a] " CMD_TARGET_SESSION_USAGE,          "[-aC] " CMD_TARGET_SESSION_USAGE,
         0,          0,
         cmd_kill_session_exec          cmd_kill_session_exec
 };  };
Line 42 
Line 42 
 {  {
         struct args     *args = self->args;          struct args     *args = self->args;
         struct session  *s, *sloop, *stmp;          struct session  *s, *sloop, *stmp;
           struct winlink  *wl;
   
         if ((s = cmd_find_session(cmdq, args_get(args, 't'), 0)) == NULL)          if ((s = cmd_find_session(cmdq, args_get(args, 't'), 0)) == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
   
         if (args_has(args, 'a')) {          if (args_has(args, 'C')) {
                   RB_FOREACH(wl, winlinks, &s->windows) {
                           wl->window->flags &= ~WINDOW_ALERTFLAGS;
                           wl->flags &= ~WINLINK_ALERTFLAGS;
                   }
                   server_redraw_session(s);
           } else if (args_has(args, 'a')) {
                 RB_FOREACH_SAFE(sloop, sessions, &sessions, stmp) {                  RB_FOREACH_SAFE(sloop, sessions, &sessions, stmp) {
                         if (sloop != s) {                          if (sloop != s) {
                                 server_destroy_session(sloop);                                  server_destroy_session(sloop);

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