vim-patch:9.1.1022: linematch option value not completed

Problem:  linematch option value not completed
          (after v9.1.1009)
Solution: Update diffoption completion values

related: vim/vim#9661
closes: vim/vim#16437

9162e636b3

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2025-02-04 08:25:10 +08:00
parent 290bb4c64b
commit 1c3bda7e92
2 changed files with 5 additions and 1 deletions

View File

@ -2170,8 +2170,8 @@ local options = {
'followwrap',
'internal',
'indent-heuristic',
'linematch:',
{ 'algorithm:', { 'myers', 'minimal', 'patience', 'histogram' } },
'linematch:',
},
deny_duplicates = true,
desc = [=[

View File

@ -711,6 +711,10 @@ func Test_set_completion_string_values()
" Test empty option
set diffopt=
call assert_equal([], getcompletion('set diffopt-=', 'cmdline'))
" Test all possible values
call assert_equal(['filler', 'context:', 'iblank', 'icase', 'iwhite', 'iwhiteall', 'iwhiteeol', 'horizontal',
\ 'vertical', 'closeoff', 'hiddenoff', 'foldcolumn:', 'followwrap', 'internal', 'indent-heuristic', 'algorithm:', 'linematch:'],
\ getcompletion('set diffopt=', 'cmdline'))
set diffopt&
" Test escaping output