diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-02 22:10:47 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-02 22:47:47 -0400 |
| commit | c0d835764fbf33b2effc359498e58e8a114444a8 (patch) | |
| tree | b0598f7a1697285f7586a4c6f354c7a811d2d278 /src/nvim/testdir | |
| parent | 07fbdf4acc3b15ff97acb5c90243c61d938f8541 (diff) | |
| download | rneovim-c0d835764fbf33b2effc359498e58e8a114444a8.tar.gz rneovim-c0d835764fbf33b2effc359498e58e8a114444a8.tar.bz2 rneovim-c0d835764fbf33b2effc359498e58e8a114444a8.zip | |
vim-patch:8.1.0047: no completion for :unlet $VAR
Problem: No completion for :unlet $VAR.
Solution: Add completion. (Jason Franklin)
https://github.com/vim/vim/commit/19834010889fc5bfa0f88b3ba83133dae6c0a35d
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_unlet.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_unlet.vim b/src/nvim/testdir/test_unlet.vim index dbddffb492..b02bdaab3b 100644 --- a/src/nvim/testdir/test_unlet.vim +++ b/src/nvim/testdir/test_unlet.vim @@ -52,3 +52,13 @@ func Test_unlet_env() unlet $MUST_NOT_BE_AN_ERROR endfunc + +func Test_unlet_complete() + let g:FOOBAR = 1 + call feedkeys(":unlet g:FOO\t\n", 'tx') + call assert_true(!exists('g:FOOBAR')) + + let $FOOBAR = 1 + call feedkeys(":unlet $FOO\t\n", 'tx') + call assert_true(!exists('$FOOBAR') || empty($FOOBAR)) +endfunc |