getnstr() returns KEY_RESIZE if there was a pending resize event, so loop
authorguenther <guenther@openbsd.org>
Tue, 14 Jan 2014 02:44:57 +0000 (02:44 +0000)
committerguenther <guenther@openbsd.org>
Tue, 14 Jan 2014 02:44:57 +0000 (02:44 +0000)
commit6def4870fc000b3f92457ea7b2ce64a839cfae17
tree1b63ec746ad31052e905c29cbb0e9126f70a28c8
parent1bd5ac70bdcb8b000ed92f4a7863c07b9566de1b
getnstr() returns KEY_RESIZE if there was a pending resize event, so loop
until it stops returning that, resetting the cursor position each time.

hint from Gregor Best (gbe (at) ring0.de)
problem noted by and ok sthen@
usr.bin/top/display.c