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

Diff for /src/usr.bin/tmux/cmd-split-window.c between version 1.14 and 1.15

version 1.14, 2009/11/13 19:53:29 version 1.15, 2009/11/20 19:12:39
Line 174 
Line 174 
         else          else
                 cwd = ctx->cmdclient->cwd;                  cwd = ctx->cmdclient->cwd;
   
           type = LAYOUT_TOPBOTTOM;
           if (data->flag_horizontal)
                   type = LAYOUT_LEFTRIGHT;
   
         size = -1;          size = -1;
         if (data->size != -1)          if (data->size != -1)
                 size = data->size;                  size = data->size;
         else if (data->percentage != -1)          else if (data->percentage != -1) {
                 size = (w->active->sy * data->percentage) / 100;                  if (type == LAYOUT_TOPBOTTOM)
                           size = (w->active->sy * data->percentage) / 100;
                   else
                           size = (w->active->sx * data->percentage) / 100;
           }
         hlimit = options_get_number(&s->options, "history-limit");          hlimit = options_get_number(&s->options, "history-limit");
   
         type = LAYOUT_TOPBOTTOM;  
         if (data->flag_horizontal)  
                 type = LAYOUT_LEFTRIGHT;  
   
         shell = options_get_string(&s->options, "default-shell");          shell = options_get_string(&s->options, "default-shell");
         if (*shell == '\0' || areshell(shell))          if (*shell == '\0' || areshell(shell))

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