Cope with resize in os_read_line.
authorTimo Korvola <tkorvola@iki.fi>
Sat, 10 Feb 2018 12:43:44 +0000 (14:43 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Sat, 10 Feb 2018 12:57:36 +0000 (14:57 +0200)
commit5a384bb1115a480b185ecbf7178ea387c2bb20f2
tree0956f820d6ef619ea2438d81d3161f9e3c4737ee
parent10c61df3bab405d4554e0c59427fea6243522df0
Cope with resize in os_read_line.

os_read_line now returns ZC_BAD if the screen becomes too narrow.
Not sure if that is right but it will do for now.  The bigger problem
is that the Zwindow structures in screen.c are not updated, thus
subsequent output makes a mess of the screen.

#42: Handle terminal resizing
src/curses/ux_input.c