diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-01 10:54:41 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-01 11:02:55 +0800 |
| commit | 300490f2e8e94ee471685cd9809964c10ebdc1ed (patch) | |
| tree | d5e13bc8ca3d21531a98923ce327d380b7d19394 /src/nvim/testdir/test_cmdline.vim | |
| parent | 2268a4147ec1e9f0236fd5eb56c1cc2b751eca05 (diff) | |
| download | rneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.tar.gz rneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.tar.bz2 rneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.zip | |
vim-patch:8.2.0049: command line completion not fully tested
Problem: Command line completion not fully tested.
Solution: Add more test cases. Make help sorting stable. (Dominique Pelle,
closes vim/vim#5402)
https://github.com/vim/vim/commit/297610ba4b110c918ffe60c45eb4a1d6ea2daae5
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 8d1746be2f..8574573d8c 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -757,6 +757,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_complete_expression() let g:SomeVar = 'blah' for cmd in ['exe', 'echo', 'echon', 'echomsg'] |