From d5e8c92816f35ea1a9298084238a08f35958baa6 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 2 Feb 2021 21:10:01 +0100 Subject: patch 8.2.2452: no completion for the 'filetype' option Problem: No completion for the 'filetype' option. Solution: Add filetype completion. (Martin Tournoij, closes #7747) --- src/testdir/test_options.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testdir') 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=\\\"\", 'xt') call assert_equal('"set key=*****', @:) set key= + + " Expand values for 'filetype' + call feedkeys(":set filetype=sshdconfi\\\"\", 'xt') + call assert_equal('"set filetype=sshdconfig', @:) + call feedkeys(":set filetype=a\\\"\", 'xt') + call assert_equal('"set filetype=' .. getcompletion('a*', 'filetype')->join(), @:) endfunc func Test_set_errors() -- cgit v1.2.1