diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-16 20:28:52 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-16 20:28:52 +0100 |
commit | 11a481f711ee2d58c1157e9917779ea424ba3a45 (patch) | |
tree | 69e0ee5348f621a1dc62e40c853ab3764f812505 /test/functional/ui/wildmode_spec.lua | |
parent | 8d00393d0cc89511867861dc8ac5cc7b068f9f69 (diff) | |
parent | c9264e6d524b3c2ac1a1388d5627f9b0c717cbc7 (diff) | |
download | rneovim-11a481f711ee2d58c1157e9917779ea424ba3a45.tar.gz rneovim-11a481f711ee2d58c1157e9917779ea424ba3a45.tar.bz2 rneovim-11a481f711ee2d58c1157e9917779ea424ba3a45.zip |
Merge #9686 'win/Lua: monkey-patch os.getenv()'
fixes #9681
Diffstat (limited to 'test/functional/ui/wildmode_spec.lua')
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index 7cd09fb222..cf22bb0a6f 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -29,8 +29,7 @@ describe("'wildmenu'", function() end it(':sign <tab> shows wildmenu completions', function() - command('set wildmode=full') - command('set wildmenu') + command('set wildmenu wildmode=full') feed(':sign <tab>') screen:expect([[ | @@ -201,14 +200,28 @@ describe('command line completion', function() ]]) end) + it('completes env var names #9681', function() + clear() + screen:attach() + command('let $XTEST_1 = "foo" | let $XTEST_2 = "bar"') + command('set wildmenu wildmode=full') + feed(':!echo $XTEST_<tab>') + screen:expect([[ + | + {1:~ }| + {1:~ }| + {2:XTEST_1}{3: XTEST_2 }| + :!echo $XTEST_1^ | + ]]) + end) + it('completes (multibyte) env var names #9655', function() clear({env={ ['XTEST_1AaあB']='foo', ['XTEST_2']='bar', }}) screen:attach() - command('set wildmode=full') - command('set wildmenu') + command('set wildmenu wildmode=full') feed(':!echo $XTEST_<tab>') screen:expect([[ | |