aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-28 07:07:50 +0800
committerGitHub <noreply@github.com>2023-08-28 07:07:50 +0800
commit6b12eda2201706dbc4705b6e3ca9b17821051e58 (patch)
tree85466ce057a67a1ec6901d8872eef1b4bb6e4cf3 /test
parentd7d3d757c1e9dc1c204764722623a9b0ae41eb83 (diff)
downloadrneovim-6b12eda2201706dbc4705b6e3ca9b17821051e58.tar.gz
rneovim-6b12eda2201706dbc4705b6e3ca9b17821051e58.tar.bz2
rneovim-6b12eda2201706dbc4705b6e3ca9b17821051e58.zip
vim-patch:9.0.1798: The 'syntax' option has no completion. (#24908)
Problem: The 'syntax' option has no completion. Solution: Add syntax option completion. closes: vim/vim#12900 https://github.com/vim/vim/commit/6dfdff3f273dcea29099d81e3eceb871ae089998 N/A patches: vim-patch:9.0.1795: Indentation issues Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_options.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim
index 563709b9a3..c56efe8786 100644
--- a/test/old/testdir/test_options.vim
+++ b/test/old/testdir/test_options.vim
@@ -378,6 +378,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()