diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-10-01 21:05:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-01 21:05:12 +0800 |
| commit | b40c70f2fcaf709d2bf8b3209ae1e2f617d8e852 (patch) | |
| tree | 489e52a8c585f8f1fccfdddf814ac763ad2b7522 /test/functional | |
| parent | 9b3045103f7d56e5ccd0574dcb93e953b72d5f50 (diff) | |
| parent | 01c51a491330bd10202c73aff92c0978984c0692 (diff) | |
| download | rneovim-b40c70f2fcaf709d2bf8b3209ae1e2f617d8e852.tar.gz rneovim-b40c70f2fcaf709d2bf8b3209ae1e2f617d8e852.tar.bz2 rneovim-b40c70f2fcaf709d2bf8b3209ae1e2f617d8e852.zip | |
Merge pull request #25456 from zeertzjq/vim-9.0.1958
vim-patch:9.0.{1958,1960,1961,1968}: string option completion
Diffstat (limited to 'test/functional')
| -rw-r--r-- | test/functional/editor/completion_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua index 8c299636cc..ea3397d50d 100644 --- a/test/functional/editor/completion_spec.lua +++ b/test/functional/editor/completion_spec.lua @@ -941,6 +941,15 @@ describe('completion', function() end) end) + it('cmdline completion supports various string options', function() + eq('auto', funcs.getcompletion('set foldcolumn=', 'cmdline')[2]) + eq({'nosplit', 'split'}, funcs.getcompletion('set inccommand=', 'cmdline')) + eq({'ver:3,hor:6', 'hor:', 'ver:'}, funcs.getcompletion('set mousescroll=', 'cmdline')) + eq('BS', funcs.getcompletion('set termpastefilter=', 'cmdline')[2]) + eq('SpecialKey', funcs.getcompletion('set winhighlight=', 'cmdline')[1]) + eq('SpecialKey', funcs.getcompletion('set winhighlight=NonText:', 'cmdline')[1]) + end) + describe('from the commandline window', function() it('is cleared after CTRL-C', function () feed('q:') |