Keep cursor within bounds in os_read_line.
authorTimo Korvola <tkorvola@iki.fi>
Mon, 19 Feb 2018 21:41:49 +0000 (23:41 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Mon, 19 Feb 2018 21:42:58 +0000 (23:42 +0200)
commit894aa5212b1011706a4f284d9baf5cb676dd3df3
treed1bbed2a0eb014ce202269d6bc0c57ec95bab499
parentdc29846e3565bd7613007e56fc5656b641562b5a
Keep cursor within bounds in os_read_line.

Maximum scrpos is width - 1 even if len == width.  Then the cursor
will stay on the last character because there is no room to the right
of it.

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