commit 1c3bda7e92f6162800bc013851c8570800026420
parent 290bb4c64bdcc475c29b857dc8626f5c51aa2b8d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 4 Feb 2025 08:25:10 +0800
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
https://github.com/vim/vim/commit/9162e636b31dcac57876cbdec15a683cedd9760e
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
@@ -2170,8 +2170,8 @@ local options = {
'followwrap',
'internal',
'indent-heuristic',
- 'linematch:',
{ 'algorithm:', { 'myers', 'minimal', 'patience', 'histogram' } },
+ 'linematch:',
},
deny_duplicates = true,
desc = [=[
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim
@@ -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