Return to cmd-display-menu.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.7, 2020/03/24 08:09:43 | version 1.8, 2020/03/28 09:39:44 | ||
---|---|---|---|
|
|
||
} | } | ||
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')) { | ||
|
|
||
} | } | ||
} | } | ||
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'); |