Do not terminate when size is reduced too much.
commitb9253ef24e70f7a7bbfe320b1c3639da52d740f0
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Wed, 3 Mar 2010 16:55:39 +0000 (3 11:55 -0500)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Wed, 3 Mar 2010 16:55:39 +0000 (3 11:55 -0500)
tree92992f3e6a0b6f6612c69a0e4b3def5e719e0bf7
parentda8e87d6505fb33ed131144a33af88c6d0dc96fd
Do not terminate when size is reduced too much.

Height of a window can be negative, when both hardstatus and caption
are turned on, and the terminal size is reduced to one-line height.
So handle those cases more gracefully.

Fixes savannah bug #29037.
src/ansi.c
src/resize.c