diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-02 21:10:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-02 21:10:01 +0100 |
commit | d5e8c92816f35ea1a9298084238a08f35958baa6 (patch) | |
tree | 8d6777071a59e4433b2f01f1cbf10ad426c405bf /src/testdir | |
parent | e7bebc495d4014d7bc81f863939c35268cb8e97d (diff) | |
download | vim-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.vim | 6 |
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() |