Stay in os_read_line on resize.
authorTimo Korvola <tkorvola@iki.fi>
Sun, 18 Feb 2018 18:24:46 +0000 (20:24 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Sun, 18 Feb 2018 18:24:46 +0000 (20:24 +0200)
commitdc29846e3565bd7613007e56fc5656b641562b5a
tree8341aa5ad69acf5558febceabd252ecab5de8467
parent217626d7c7f2e5f18b048101db581296c088709f
Stay in os_read_line on resize.

The callers of os_read_line weren't taking a return value of ZC_BAD
too well.  So just chop input to fit and keep editing.

Document that width is adjusted according to terminal width.

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