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

Diff for /src/usr.bin/tmux/cmd-display-menu.c between version 1.7 and 1.8

version 1.7, 2020/03/24 08:09:43 version 1.8, 2020/03/28 09:39:44
Line 237 
Line 237 
         }          }
   
         if (nlines != 0)          if (nlines != 0)
                 h = nlines + 2;                  h = popup_height(nlines, lines) + 2;
         else          else
                 h = c->tty.sy / 2;                  h = c->tty.sy / 2;
         if (args_has(args, 'h')) {          if (args_has(args, 'h')) {
Line 262 
Line 262 
                 }                  }
         }          }
   
           if (w > c->tty.sx - 1)
                   w = c->tty.sx - 1;
           if (h > c->tty.sy - 1)
                   h = c->tty.sy - 1;
         cmd_display_menu_get_position(c, item, args, &px, &py, w, h);          cmd_display_menu_get_position(c, item, args, &px, &py, w, h);
   
         value = args_get(args, 'd');          value = args_get(args, 'd');

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8