summaryrefslogtreecommitdiffstats
path: root/tests/003
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-05 01:35:48 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-05 01:35:48 -0800
commit2bc4df81e615f31a3ae8e8e81a439ce66d176c3e (patch)
tree5ecf6294fe57d5a6f74fac56f1604f8f404faea3 /tests/003
parentee93befb6473258ef880b5d4175487a4d901fb5e (diff)
downloadtxr-2bc4df81e615f31a3ae8e8e81a439ce66d176c3e.tar.gz
txr-2bc4df81e615f31a3ae8e8e81a439ce66d176c3e.tar.bz2
txr-2bc4df81e615f31a3ae8e8e81a439ce66d176c3e.zip
linenoise: bugfix: regression in mlmode line wrap.
The following problem happens: when charaters are inserted past the end of the line such that it wraps, hitting backspace or any cursor movement causes a spurious scroll. This was caused on Nov 1 2018 by bf85503b (linenoise: avoid refresh for new text in multi-line mode). The reason is that the maxrows variable isn't updated when we trivially add a character without repainting. * linenoise/linenoise.c (lino state): Document special value for need_refresh: when it is 2, the refresh doesn't perform a any output, but recalculates maxrows. (refreh_multiline): If need_refresh is 2, bail after updating maxrows. (edit_insert): When trivially adding a character at the end and just outputting it, if in multi-line mode, set need_refresh to 2.
Diffstat (limited to 'tests/003')
0 files changed, 0 insertions, 0 deletions