]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2018: complete_info() returns wrong index v9.0.2018
authorLemonBoy <thatlemon@gmail.com>
Wed, 11 Oct 2023 19:55:56 +0000 (21:55 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 11 Oct 2023 19:55:56 +0000 (21:55 +0200)
commit69fb5afb3bc9da24c2fb0eafb0027ba9c6502fc2
tree0538edcc3c2e8233315a948e3c1dd207cd8d83e1
parentdd75fcfbdff1934c6e531b5a89ebc636318bf4a2
patch 9.0.2018: complete_info() returns wrong index

Problem:  complete_info() returns wrong index
Solution: Make order of 'info' in completion_info consistent

Start the iteration from the same point and follow the same direction as
done when assigning the completion numbers. This way we remove the
dependence on the completion direction and make the order of 'info'
consistent.

closes: #12230
closes: #12971

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: LemonBoy <thatlemon@gmail.com>
src/insexpand.c
src/testdir/test_ins_complete.vim
src/version.c