diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-12 17:03:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-12 17:03:39 +0200 |
commit | 19834010889fc5bfa0f88b3ba83133dae6c0a35d (patch) | |
tree | a6e4bda36d3989a0b143ef47204084e3d05c22d2 /src/testdir | |
parent | 1c3c10492a291270fa89b3c8df11828792f927d3 (diff) | |
download | vim-git-19834010889fc5bfa0f88b3ba83133dae6c0a35d.tar.gz |
patch 8.1.0047: no completion for :unlet $VARv8.1.0047
Problem: No completion for :unlet $VAR.
Solution: Add completion. (Jason Franklin)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_unlet.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_unlet.vim b/src/testdir/test_unlet.vim index 6636f6d66..0a9f3c61b 100644 --- a/src/testdir/test_unlet.vim +++ b/src/testdir/test_unlet.vim @@ -45,3 +45,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 |