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

Diff for /src/usr.bin/tmux/cmd-new-session.c between version 1.136 and 1.137

version 1.136, 2021/06/10 07:24:45 version 1.137, 2021/07/06 08:18:38
Line 102 
Line 102 
         if (tmp != NULL) {          if (tmp != NULL) {
                 name = format_single(item, tmp, c, NULL, NULL, NULL);                  name = format_single(item, tmp, c, NULL, NULL, NULL);
                 newname = session_check_name(name);                  newname = session_check_name(name);
                   if (newname == NULL) {
                           cmdq_error(item, "invalid session: %s", name);
                           free(name);
                           return (CMD_RETURN_ERROR);
                   }
                 free(name);                  free(name);
         }          }
         if (args_has(args, 'A')) {          if (args_has(args, 'A')) {
Line 134 
Line 139 
                         prefix = xstrdup(sg->name);                          prefix = xstrdup(sg->name);
                 else if (groupwith != NULL)                  else if (groupwith != NULL)
                         prefix = xstrdup(groupwith->name);                          prefix = xstrdup(groupwith->name);
                 else                  else {
                         prefix = session_check_name(group);                          prefix = session_check_name(group);
                           if (prefix == NULL) {
                                   cmdq_error(item, "invalid session group: %s",
                                       group);
                                   goto fail;
                           }
                   }
         }          }
   
         /* Set -d if no client. */          /* Set -d if no client. */

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.137