diff options
author | Jonathan de Boyne Pollard <postmaster@localhost> | 2017-05-22 21:53:36 +0100 |
---|---|---|
committer | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-06-03 18:53:27 +0100 |
commit | dbc25f5a87cf3bcfe1caac1eb1ff8b3a6978a415 (patch) | |
tree | 797188b7770cfe6fd1c8b881a3bc193e4a3a3e5c /src/clint.py | |
parent | d711bb84e6a78360e470d82f3671da64583089c2 (diff) | |
download | rneovim-dbc25f5a87cf3bcfe1caac1eb1ff8b3a6978a415.tar.gz rneovim-dbc25f5a87cf3bcfe1caac1eb1ff8b3a6978a415.tar.bz2 rneovim-dbc25f5a87cf3bcfe1caac1eb1ff8b3a6978a415.zip |
tui: Optimize cursor motions
Instead of emitting CUP in several places each with their own poor local
optimizations, funnel all cursor motion through a central place.
This central function performs the same optimization for every place that
needs to move the cursor, and implements a better set of optimizations:
* Emit CUU/CUD/CUF/CUB instad of CUP when they are likely shorter.
* Use BS and LF when they are shorter than CUB and CUD.
* Use CR for quick returns to column zero.
* If printing the next few characters is shorter than a rightwards motion,
then just write out the characters.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions