summaryrefslogtreecommitdiffstats
path: root/vmop.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-14 07:27:52 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-14 07:27:52 -0800
commita632605cdf74fe0ad72c3a234e0cbf748f25bcff (patch)
tree96e7ce351e315235a0a29dfac14854c8ab8513c8 /vmop.h
parentfdb485cac7236e2b66cbf0c1c61b95a598c3dabc (diff)
downloadtxr-a632605cdf74fe0ad72c3a234e0cbf748f25bcff.tar.gz
txr-a632605cdf74fe0ad72c3a234e0cbf748f25bcff.tar.bz2
txr-a632605cdf74fe0ad72c3a234e0cbf748f25bcff.zip
linenoise: bugfix: vertical skip problem.
This relates to the optimized insert at the end of the line. The following bug manifests itself. When the cursor is not at the bottom of the screen (e.g. fresh terminal after a clear screen), if blank lines are added to the buffer and then backspace is hit, the cursor strangely jumps down by multiple lines prior to the refresh. In a Windows CMD.EXE window, this shows up even at the bottom of the screen, because the CMD.EXE console responds to a downward movement (ESC[<n>B) beyond the bottom row by scrolling the screen, rather than clipping the movement. * linenoise/linenoise.c (refresh_multiline): When doing the elided refresh (l->need_refresh == 2), we must update not only l->maxrows but also l->oldrow. Otherwise when we do the real update, it will think that the cursor is on the first line, and try to move down to the last line.
Diffstat (limited to 'vmop.h')
0 files changed, 0 insertions, 0 deletions