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_cmdline.vim | |
parent | 5c463a28fff1d82222d49bc7960da9e0c866b060 (diff) |
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_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 837ef63dda..38b5826e62 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -553,6 +553,14 @@ func Test_cmdline_complete_user_names() endif endfunc +func Test_cmdline_complete_bang() + if executable('whoami') + return + endif + call feedkeys(":!whoam\<C-A>\<C-B>\"\<CR>", 'tx') + call assert_match('^".*\<whoami\>', @:) +endfunc + funct Test_cmdline_complete_languages() let lang = substitute(execute('language messages'), '.*"\(.*\)"$', '\1', '') @@ -575,6 +583,15 @@ funct Test_cmdline_complete_languages() endif endfunc +func Test_cmdline_complete_env_variable() + let $X_VIM_TEST_COMPLETE_ENV = 'foo' + + call feedkeys(":edit $X_VIM_TEST_COMPLETE_E\<C-A>\<C-B>\"\<CR>", 'tx') + call assert_match('"edit $X_VIM_TEST_COMPLETE_ENV', @:) + + unlet $X_VIM_TEST_COMPLETE_ENV +endfunc + func Test_cmdline_write_alternatefile() new call setline('.', ['one', 'two']) |