forked from aniani/vim
patch 9.0.1798: The 'syntax' option has no completion.
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>
This commit is contained in:
committed by
Christian Brabandt
parent
f97f6bbf56
commit
6dfdff3f27
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user