aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/commands_spec.lua
diff options
context:
space:
mode:
authorVanaIgr <vanaigranov@gmail.com>2023-12-17 16:48:27 -0600
committerzeertzjq <zeertzjq@outlook.com>2024-01-22 09:04:42 +0800
commitb5653984e5de514410b5654d2a9b92bdcb9eedf3 (patch)
tree68b8cd7f358977da70811e124d84192096d84a2f /test/functional/lua/commands_spec.lua
parent2f2f12122f3883dc6faf25751e176646f044db77 (diff)
downloadrneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.tar.gz
rneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.tar.bz2
rneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.zip
perf: don't decode utf8 character multiple times in getvcol()
The optimized virtual column calculation loop in getvcol() was decoding the current character twice: once in ptr2cells() and the second time in utfc_ptr2len(). For combining charcters, they were decoded up to 2 times in utfc_ptr2len(). Additionally, the function used to decode the character could be further optimised.
Diffstat (limited to 'test/functional/lua/commands_spec.lua')
0 files changed, 0 insertions, 0 deletions