]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2154: The option[] array is not sorted v9.0.2154
authorzeertzjq <zeertzjq@outlook.com>
Fri, 8 Dec 2023 20:34:31 +0000 (21:34 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 Dec 2023 20:36:55 +0000 (21:36 +0100)
commitf48558e10a08a1a483e25ef847bbceeac6b44561
tree5f5d68ff220a64256c3167fbaccbdb5006881404
parentff0baca86523f1e8c6ea593ec0ef2f9860f001d0
patch 9.0.2154: The option[] array is not sorted

Problem:  The options[] array is not sorted alphabetically.
Solution: Sort it alphabetically.  Add a test.  Avoid unnecessary loop
          iterations in findoption().

closes: #13648

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/option.c
src/optiondefs.h
src/testdir/test_options.vim
src/version.c