summaryrefslogtreecommitdiffstats
path: root/unwind.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-25 06:46:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-25 06:46:07 -0700
commit9f777d5898216453055a570c06d561e540241261 (patch)
treec71601232614725f33de99744ec5e16d67596e1d /unwind.c
parent977d61d2229d3517226edfb3a32b929c6d95d19b (diff)
downloadtxr-9f777d5898216453055a570c06d561e540241261.tar.gz
txr-9f777d5898216453055a570c06d561e540241261.tar.bz2
txr-9f777d5898216453055a570c06d561e540241261.zip
linenoise: fix multi-line issues with long lines
* linenoise/linenoise.c (screen_rows): Restructured. Calculates correct cursor rows (out.rows[1]). It's now possible that the reported cursor row exceeds the number of rows (out.rows[0]), because the cursor is on the last line, which itself doesn't wrap, but the cursor does. (refresh_multiline): Cursor wrapping calculation is simple now: just check that nrow > rows. Coalesced code for dealing with cursor position.
Diffstat (limited to 'unwind.c')
0 files changed, 0 insertions, 0 deletions