regedit: handle awkward window sizes better
authorChris Davis <cd.rattan@gmail.com>
Tue, 17 Jun 2014 00:36:16 +0000 (17:36 -0700)
committerMichael Adam <obnox@samba.org>
Wed, 1 Oct 2014 12:32:08 +0000 (14:32 +0200)
commit55662513e14c026eb4cfa044ed772b31be5d6ab9
tree2615f4b05deef0495a1f1d8260257d3a953149f7
parentc85cc6b8360284c64d60ff4d09ca8d5e03188f7b
regedit: handle awkward window sizes better

This fixes some assertion failures and an infinte loop that occurs
when the terminal window is shrunk down far enough to the point
regedit can't fit everything on screen.

Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/regedit_list.c
source3/utils/regedit_treeview.c
source3/utils/regedit_valuelist.c