diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-04 08:29:34 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-04 08:42:53 +0800 |
commit | 3a1fe4732d8b6efd5b10803e649d62dc17c2c778 (patch) | |
tree | 74a37686787a876908663aac00bd066dab011355 /test | |
parent | bd145a6c8398fb7a3fd037bc71c1bacaeba49584 (diff) | |
download | rneovim-3a1fe4732d8b6efd5b10803e649d62dc17c2c778.tar.gz rneovim-3a1fe4732d8b6efd5b10803e649d62dc17c2c778.tar.bz2 rneovim-3a1fe4732d8b6efd5b10803e649d62dc17c2c778.zip |
vim-patch:9.1.1072: 'diffopt' "linematch" cannot be used with {n} less than 10
Problem: 'diffopt' "linematch" cannot be used with {n} less than 10
digits (after v9.1.1022)
Solution: Fix off-by-one error when checking for digit (zeertzjq)
closes: vim/vim#16577
https://github.com/vim/vim/commit/ccd7f454fcac2f99085d4f50e79c111c02741166
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/gen_opt_test.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim index f9fcc4ae1b..f12ce8c7c4 100644 --- a/test/old/testdir/gen_opt_test.vim +++ b/test/old/testdir/gen_opt_test.vim @@ -209,9 +209,11 @@ let test_values = { \ 'icase', 'iwhite', 'iwhiteall', 'horizontal', 'vertical', \ 'closeoff', 'hiddenoff', 'foldcolumn:0', 'foldcolumn:12', \ 'followwrap', 'internal', 'indent-heuristic', 'algorithm:myers', - \ 'algorithm:minimal', 'algorithm:patience', - \ 'algorithm:histogram', 'icase,iwhite'], - \ ['xxx', 'foldcolumn:xxx', 'algorithm:xxx', 'algorithm:']], + \ 'icase,iwhite', 'algorithm:minimal', 'algorithm:patience', + \ 'algorithm:histogram', 'linematch:5'], + \ ['xxx', 'foldcolumn:', 'foldcolumn:x', 'foldcolumn:xxx', + \ 'linematch:', 'linematch:x', 'linematch:xxx', 'algorithm:', + \ 'algorithm:xxx', 'context:', 'context:x', 'context:xxx']], \ 'display': [['', 'lastline', 'truncate', 'uhex', 'lastline,uhex'], \ ['xxx']], \ 'eadirection': [['both', 'ver', 'hor'], ['xxx', 'ver,hor']], |