aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-22 16:10:15 +0800
committerGitHub <noreply@github.com>2024-10-22 08:10:15 +0000
commit8c532a9ea8a0bb2ee93d772c9589d1a84afeb541 (patch)
tree0bd0d98de03fbf72426b64b81d59aaa7c667a1ce /test/old/testdir
parent772614f9cc44bfd4914d27698509077e762873c0 (diff)
downloadrneovim-8c532a9ea8a0bb2ee93d772c9589d1a84afeb541.tar.gz
rneovim-8c532a9ea8a0bb2ee93d772c9589d1a84afeb541.tar.bz2
rneovim-8c532a9ea8a0bb2ee93d772c9589d1a84afeb541.zip
fix(options): fix 'winhl' still accepting invalid value (#30896)
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/gen_opt_test.vim15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim
index 27e709b19d..f64798f8dd 100644
--- a/test/old/testdir/gen_opt_test.vim
+++ b/test/old/testdir/gen_opt_test.vim
@@ -84,14 +84,19 @@ let test_values = {
"\ Nvim-only options
\ 'channel': [[], []],
\ 'inccommand': [['', 'nosplit', 'split'], ['xxx']],
- \ 'mousescroll': [['ver:1', 'hor:2', 'ver:1,hor:2', 'hor:1,ver:2'], ['xxx']],
+ \ 'mousescroll': [['ver:1', 'hor:2', 'ver:1,hor:2', 'hor:1,ver:2'],
+ \ ['xxx', 'ver:1,xxx', 'hor:2,xxx']],
\ 'redrawdebug': [[''], ['xxx']],
\ 'shada': [['', '''50', '"30'], ['xxx']],
- \ 'termpastefilter': [['BS', 'HT', 'FF', 'ESC', 'DEL', 'C0', 'C1', 'C0,C1'], ['xxx']],
- \ 'winhighlight': [['', 'Visual:Search'], ['xxx']],
+ \ 'termpastefilter': [['BS', 'HT', 'FF', 'ESC', 'DEL', 'C0', 'C1', 'C0,C1'],
+ \ ['xxx', 'C0,C1,xxx']],
+ \ 'winhighlight': [['', 'a:b', 'a:', 'a:b,c:d'],
+ \ ['a', ':', ':b', 'a:b:c', 'a:/', '/:b', ',', 'a:b,,', 'a:b,c']],
\
"\ Options for which Nvim has different allowed values
- \ 'backspace': [[2, '', 'eol', 'eol,start', 'indent,eol,nostop'], ['4', 'xxx']],
+ \ 'backspace': [[2, '', 'indent', 'eol', 'start', 'nostop',
+ \ 'eol,start', 'indent,eol,nostop'],
+ \ [-1, 4, 'xxx']],
\ 'buftype': [['', 'nofile', 'nowrite', 'acwrite', 'quickfix', 'help',
\ 'prompt'],
\ ['xxx', 'help,nofile']],
@@ -105,7 +110,7 @@ let test_values = {
\ 'highlight': [[&highlight], []],
\ 'iminsert': [[0, 1], [-1, 2, 3, 999]],
\ 'imsearch': [[-1, 0, 1], [-2, 2, 3, 999]],
- \ 'signcolumn': [['auto', 'no'], ['xxx', 'no,yes']],
+ \ 'signcolumn': [['auto', 'no', 'yes', 'number'], ['', 'xxx', 'no,yes']],
\ 'writedelay': [[0, 100], [-1, '']],
\
"\ boolean options