mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
290bb4c64b
commit
1c3bda7e92
@ -2170,8 +2170,8 @@ local options = {
|
||||
'followwrap',
|
||||
'internal',
|
||||
'indent-heuristic',
|
||||
'linematch:',
|
||||
{ 'algorithm:', { 'myers', 'minimal', 'patience', 'histogram' } },
|
||||
'linematch:',
|
||||
},
|
||||
deny_duplicates = true,
|
||||
desc = [=[
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user