[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.123 and 1.124

version 1.123, 2020/04/03 13:54:31 version 1.124, 2020/04/09 13:57:18
Line 207 
Line 207 
                                 goto fail;                                  goto fail;
                         }                          }
                 }                  }
         }          } else
                   dsx = 80;
         if (args_has(args, 'y')) {          if (args_has(args, 'y')) {
                 tmp = args_get(args, 'y');                  tmp = args_get(args, 'y');
                 if (strcmp(tmp, "-") == 0) {                  if (strcmp(tmp, "-") == 0) {
Line 222 
Line 223 
                                 goto fail;                                  goto fail;
                         }                          }
                 }                  }
         }          } else
                   dsy = 24;
   
         /* Find new session size. */          /* Find new session size. */
         if (!detached && !is_control) {          if (!detached && !is_control) {
Line 233 
Line 235 
         } else {          } else {
                 tmp = options_get_string(global_s_options, "default-size");                  tmp = options_get_string(global_s_options, "default-size");
                 if (sscanf(tmp, "%ux%u", &sx, &sy) != 2) {                  if (sscanf(tmp, "%ux%u", &sx, &sy) != 2) {
                         sx = 80;  
                         sy = 24;  
                 }  
                 if (args_has(args, 'x'))  
                         sx = dsx;                          sx = dsx;
                 if (args_has(args, 'y'))  
                         sy = dsy;                          sy = dsy;
                   } else {
                           if (args_has(args, 'x'))
                                   sx = dsx;
                           if (args_has(args, 'y'))
                                   sy = dsy;
                   }
         }          }
         if (sx == 0)          if (sx == 0)
                 sx = 1;                  sx = 1;

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.124