slackware-current/source/a/dialog/dialog.all.use_height.diff
Patrick J Volkerding e4325044a8 Thu Jan 2 21:15:46 UTC 2020
a/dialog-1.3_20191210-x86_64-1.txz:  Upgraded.
a/shadow-4.8-x86_64-2.txz:  Rebuilt.
  Don't ship /etc/environment.new since sudo is no longer complaining about it.
ap/lxc-2.0.11_fad08f383-x86_64-4.txz:  Rebuilt.
  Make sure all initial devices are properly created.
  Fix accidental handling of rc.lxc as a modified-for-lxc init script.
  Thanks to crts.
d/python-setuptools-44.0.0-x86_64-1.txz:  Upgraded.
l/libedit-20191231_3.1-x86_64-1.txz:  Upgraded.
l/python-pillow-7.0.0-x86_64-1.txz:  Upgraded.
2020-01-03 08:59:49 +01:00

48 lines
1.9 KiB
Diff

--- ./menubox.c.orig 2019-11-10 19:41:15.000000000 -0600
+++ ./menubox.c 2019-12-06 13:16:39.400865476 -0600
@@ -433,7 +433,8 @@
* After displaying the prompt, we know how much space we really have.
* Limit the list to avoid overwriting the ok-button.
*/
- all.menu_height = height - MIN_HIGH - cur_y;
+ if (all.menu_height + MIN_HIGH > height - cur_y)
+ all.menu_height = height - MIN_HIGH - cur_y;
if (all.menu_height <= 0)
all.menu_height = 1;
--- ./buildlist.c.orig 2019-11-10 19:41:43.000000000 -0600
+++ ./buildlist.c 2019-12-06 13:16:39.402865476 -0600
@@ -653,7 +653,8 @@
* After displaying the prompt, we know how much space we really have.
* Limit the list to avoid overwriting the ok-button.
*/
- all.use_height = height - MIN_HIGH - cur_y;
+ if (all.use_height + MIN_HIGH > height - cur_y)
+ all.use_height = height - MIN_HIGH - cur_y;
if (all.use_height <= 0)
all.use_height = 1;
--- ./checklist.c.orig 2019-11-10 19:26:35.000000000 -0600
+++ ./checklist.c 2019-12-06 13:16:39.404865476 -0600
@@ -304,7 +304,8 @@
* After displaying the prompt, we know how much space we really have.
* Limit the list to avoid overwriting the ok-button.
*/
- all.use_height = height - MIN_HIGH - cur_y;
+ if (all.use_height + MIN_HIGH > height - cur_y)
+ all.use_height = height - MIN_HIGH - cur_y;
if (all.use_height <= 0)
all.use_height = 1;
--- ./treeview.c.orig 2019-11-10 19:38:22.000000000 -0600
+++ ./treeview.c 2019-12-06 13:17:35.604866677 -0600
@@ -291,7 +291,8 @@
* After displaying the prompt, we know how much space we really have.
* Limit the list to avoid overwriting the ok-button.
*/
- use_height = height - MIN_HIGH - cur_y;
+ if (use_height + MIN_HIGH > height - cur_y)
+ use_height = height - MIN_HIGH - cur_y;
if (use_height <= 0)
use_height = 1;