]> git.ipfire.org Git - thirdparty/newt.git/commit
restore automatic menu/list-height in whiptail
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Nov 2022 13:36:39 +0000 (14:36 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Nov 2022 14:40:05 +0000 (15:40 +0100)
commit9c4eb622653dab834d013288a48d83f80869f4fe
tree9a01bf8b1730b07c27085e5b5bfc790a9bc0d5c8
parent7d7e516c9f4fee6e0bea91ace73a45ce0965e436
restore automatic menu/list-height in whiptail

Commit 3f5d1d27f09b ("don't modify popt args in whiptail") removed
replacement of the menu/list-height popt argument, which caused the
height to not be automatically calculated together with the window
height and width, when they are specified as zero.

Rework the code to provide the menu/list-height as an additional
integer argument to listBox and checkList instead of replacing the popt
argument.
dialogboxes.c
dialogboxes.h
whiptail.c
whiptcl.c