diff options
author | L Lllvvuu <git@llllvvuu.dev> | 2023-09-15 21:43:49 -0700 |
---|---|---|
committer | L Lllvvuu <git@llllvvuu.dev> | 2023-09-16 01:12:15 -0700 |
commit | 585549625d8aef073e874d7cace9ab9df0d71847 (patch) | |
tree | 68c45d9b626b2e7bee2e45f57fc4fcb330c71fcc /runtime/lua/vim/iter.lua | |
parent | be10d65bfafe056025ffffa2c1131712b9a493a5 (diff) | |
download | rneovim-585549625d8aef073e874d7cace9ab9df0d71847.tar.gz rneovim-585549625d8aef073e874d7cace9ab9df0d71847.tar.bz2 rneovim-585549625d8aef073e874d7cace9ab9df0d71847.zip |
fix(marktree): off-by-one error in `marktree_move`
If you would insert element X at position j, then if you are moving that
same element X from position i < j, you should move it to position j -
1, because you are losing an element.
This error caused a gap to be left in the array, so that it looked like
[x, null, y] instead of [x, y], where len = 2. This triggered #25147.
Fixes: #25147
Diffstat (limited to 'runtime/lua/vim/iter.lua')
0 files changed, 0 insertions, 0 deletions