summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-02 21:10:01 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-02 21:10:01 +0100
commitd5e8c92816f35ea1a9298084238a08f35958baa6 (patch)
tree8d6777071a59e4433b2f01f1cbf10ad426c405bf /src/testdir
parente7bebc495d4014d7bc81f863939c35268cb8e97d (diff)
downloadvim-git-d5e8c92816f35ea1a9298084238a08f35958baa6.tar.gz
patch 8.2.2452: no completion for the 'filetype' optionv8.2.2452
Problem: No completion for the 'filetype' option. Solution: Add filetype completion. (Martin Tournoij, closes #7747)
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 c8b2700dd..23e0de437 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -332,6 +332,12 @@ func Test_set_completion()
call feedkeys(":set key=\<Tab>\<C-B>\"\<CR>", 'xt')
call assert_equal('"set key=*****', @:)
set key=
+
+ " Expand values for 'filetype'
+ call feedkeys(":set filetype=sshdconfi\<Tab>\<C-B>\"\<CR>", 'xt')
+ 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(), @:)
endfunc
func Test_set_errors()