aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorVanaIgr <vanaigranov@gmail.com>2023-12-13 13:54:28 -0600
committerVanaIgr <vanaigranov@gmail.com>2024-01-18 21:30:48 -0600
commit2f2f12122f3883dc6faf25751e176646f044db77 (patch)
treee4a81c5d4f5712f4cbde6220e30b936f59879132 /runtime/lua/vim/_system.lua
parenta9c551e5e38f484e9055a930b3feaa9ac65d07be (diff)
downloadrneovim-2f2f12122f3883dc6faf25751e176646f044db77.tar.gz
rneovim-2f2f12122f3883dc6faf25751e176646f044db77.tar.bz2
rneovim-2f2f12122f3883dc6faf25751e176646f044db77.zip
perf: remove loop for computing last position in getvcol()
The function computed the start of the multibyte character and iterated until the current character reached this position. The loop at the start of the function handed the case where the index passed to the function was past the end of the line. This loop can be removed if the function instead compares the next position against the end position end exits the loop if it is greater than the end position.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions