[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.112 and 1.113

version 1.112, 2018/06/08 09:41:34 version 1.113, 2018/06/08 09:43:58
Line 203 
Line 203 
         }          }
         if ((is_control || detached) && args_has(args, 'x')) {          if ((is_control || detached) && args_has(args, 'x')) {
                 tmp = args_get(args, 'x');                  tmp = args_get(args, 'x');
                 if (strcmp(tmp, "-") == 0)                  if (strcmp(tmp, "-") == 0) {
                         sx = c->tty.sx;                          if (c != NULL)
                 else {                                  sx = c->tty.sx;
                   } else {
                         sx = strtonum(tmp, 1, USHRT_MAX, &errstr);                          sx = strtonum(tmp, 1, USHRT_MAX, &errstr);
                         if (errstr != NULL) {                          if (errstr != NULL) {
                                 cmdq_error(item, "width %s", errstr);                                  cmdq_error(item, "width %s", errstr);
Line 215 
Line 216 
         }          }
         if ((is_control || detached) && args_has(args, 'y')) {          if ((is_control || detached) && args_has(args, 'y')) {
                 tmp = args_get(args, 'y');                  tmp = args_get(args, 'y');
                 if (strcmp(tmp, "-") == 0)                  if (strcmp(tmp, "-") == 0) {
                         sy = c->tty.sy;                          if (c != NULL)
                 else {                                  sy = c->tty.sy;
                   } else {
                         sy = strtonum(tmp, 1, USHRT_MAX, &errstr);                          sy = strtonum(tmp, 1, USHRT_MAX, &errstr);
                         if (errstr != NULL) {                          if (errstr != NULL) {
                                 cmdq_error(item, "height %s", errstr);                                  cmdq_error(item, "height %s", errstr);

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113