diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-27 17:20:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-27 17:20:55 +0100 |
commit | 297610ba4b110c918ffe60c45eb4a1d6ea2daae5 (patch) | |
tree | ee04b17c7069ce83dd0f7f19ec30d1a9d58b7298 /src/testdir/test_options.vim | |
parent | 5c463a28fff1d82222d49bc7960da9e0c866b060 (diff) | |
download | vim-git-297610ba4b110c918ffe60c45eb4a1d6ea2daae5.tar.gz |
patch 8.2.0049: command line completion not fully testedv8.2.0049
Problem: Command line completion not fully tested.
Solution: Add more test cases. Make help sorting stable. (Dominique Pelle,
closes #5402)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 048356ae7..636a24d6e 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -201,6 +201,12 @@ func Test_set_completion() call feedkeys(":set di\<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"set dictionary diff diffexpr diffopt digraph directory display', @:) + call feedkeys(":setlocal di\<C-A>\<C-B>\"\<CR>", 'tx') + call assert_equal('"setlocal dictionary diff diffexpr diffopt digraph directory display', @:) + + call feedkeys(":setglobal di\<C-A>\<C-B>\"\<CR>", 'tx') + call assert_equal('"setglobal dictionary diff diffexpr diffopt digraph directory display', @:) + " Expand boolan options. When doing :set no<Tab> " vim displays the options names without "no" but completion uses "no...". call feedkeys(":set nodi\<C-A>\<C-B>\"\<CR>", 'tx') @@ -239,6 +245,7 @@ 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& endfunc |