aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-12 18:38:12 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-12 21:42:09 -0500
commitb650d2d8d90a371d73a25be2d46dd3c8c0d935ab (patch)
tree8ef67fe37151b215cbc0b3674e1dc8320c47831a /src/nvim/testdir
parentea99cbc85ad937c79603461f8de046d744aa8dc3 (diff)
downloadrneovim-b650d2d8d90a371d73a25be2d46dd3c8c0d935ab.tar.gz
rneovim-b650d2d8d90a371d73a25be2d46dd3c8c0d935ab.tar.bz2
rneovim-b650d2d8d90a371d73a25be2d46dd3c8c0d935ab.zip
vim-patch:8.2.2452: no completion for the 'filetype' option
Problem: No completion for the 'filetype' option. Solution: Add filetype completion. (Martin Tournoij, closes vim/vim#7747) https://github.com/vim/vim/commit/d5e8c92816f35ea1a9298084238a08f35958baa6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 1202b842fd..05564d2ce8 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -230,6 +230,13 @@ func Test_set_completion()
call feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
set tags&
+
+ " 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(), @:)
+ call assert_equal('"set filetype=' .. join(getcompletion('a*', 'filetype')), @:)
endfunc
func Test_set_errors()