diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2024-05-17 14:17:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 14:17:25 -0500 |
commit | 4c0d18c19773327dcd771d1da7805690e3e41255 (patch) | |
tree | e5e1bcdee576ed4a2044c1a7719f878b00f0fac4 /runtime/lua/vim/provider/ruby.lua | |
parent | aec4938a21a02d279d13a9eb64ef3b7cc592c374 (diff) | |
download | rneovim-4c0d18c19773327dcd771d1da7805690e3e41255.tar.gz rneovim-4c0d18c19773327dcd771d1da7805690e3e41255.tar.bz2 rneovim-4c0d18c19773327dcd771d1da7805690e3e41255.zip |
fix(vim.iter): enable optimizations for arrays (lists with holes) (#28781)
The optimizations that vim.iter uses for array-like tables don't require
that the source table has no holes. The only thing that needs to change
is the determination if a table is "list-like": rather than requiring
consecutive, integer keys, we can simply test for (positive) integer
keys only, and remove any holes in the original array when we make a
copy for the iterator.
Diffstat (limited to 'runtime/lua/vim/provider/ruby.lua')
0 files changed, 0 insertions, 0 deletions