summaryrefslogtreecommitdiffstats
path: root/src/testdir
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2023-08-27 18:48:51 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-27 18:48:51 +0200
commit6dfdff3f273dcea29099d81e3eceb871ae089998 (patch)
tree41e708b2fcc8870baf0d971bce3ef93da46123d8 /src/testdir
parentf97f6bbf56408c0c97b4ddbe81fba858d7455b0d (diff)
patch 9.0.1798: The 'syntax' option has no completion.v9.0.1798
Problem: The 'syntax' option has no completion. Solution: Add syntax option completion. closes: #12900 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_options.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index fec8d2a94c..fc81cec4ea 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -374,6 +374,12 @@ func Test_set_completion()
call assert_equal('"set filetype=sshdconfig', @:)
call feedkeys(":set filetype=a\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal('"set filetype=' .. getcompletion('a*', 'filetype')->join(), @:)
+
+ " Expand values for 'syntax'
+ call feedkeys(":set syntax=sshdconfi\<Tab>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"set syntax=sshdconfig', @:)
+ call feedkeys(":set syntax=a\<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"set syntax=' .. getcompletion('a*', 'syntax')->join(), @:)
endfunc
func Test_set_option_errors()