diff options
| author | bfredl <bjorn.linse@gmail.com> | 2026-09-15 15:58:08 +0200 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2026-09-25 10:56:51 +0200 |
| commit | 8e3ab49f16bc9694ca5dad81856c974878cbba2c (patch) | |
| tree | f1631b10fb28480372a1923bbb0bc66176afcfd0 /runtime/lua/vim/provider/python.lua | |
| parent | 378128aab90558d729117a2b0fc948e682f6ab01 (diff) | |
| download | rneovim-8e3ab49f16bc9694ca5dad81856c974878cbba2c.tar.gz rneovim-8e3ab49f16bc9694ca5dad81856c974878cbba2c.tar.bz2 rneovim-8e3ab49f16bc9694ca5dad81856c974878cbba2c.zip | |
perf(mbyte): single decoder loop for both cluster byte length and cell width
This applies to the callsites which already used utf_ptr2CharInfo
and then utfc_next. There is more work to be done, but this
is a lagom bisectable unit.
A lot of code is still wounded by the historical distinction between
"low" characters (c < 128) and "high" characters, with the UTF-8
specific rules behind compiler flags and virtual function calls. As a
result, there are both ptr2cells() and utf_ptr2cells(). My work aims at
slowly reintegrating the realms. As such, we consider ptr2cells() the
"correct" abstraction as is matches what actually is printed in a
displayed message and buffer text without extra bells and whistles,
except for tabs.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions