diff options
author | erw7 <erw7.github@gmail.com> | 2019-03-06 14:59:28 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2019-03-06 18:06:51 +0900 |
commit | 24a56cca308621a5a585f73b22e5421461318b3d (patch) | |
tree | b0fd11598efff79ebf28752471fac5355d79888e /test | |
parent | 299f32dc012929f55e5b6b9aaf7c7aded9e7e489 (diff) | |
download | rneovim-24a56cca308621a5a585f73b22e5421461318b3d.tar.gz rneovim-24a56cca308621a5a585f73b22e5421461318b3d.tar.bz2 rneovim-24a56cca308621a5a585f73b22e5421461318b3d.zip |
Fix environment variable on Windows
Since uv_os_setenv uses SetEnvironmentVariableW, _wenviron is no
updated. As a result, inconsistency occurs in completion of environment
variable names. Change to use GetEnvironmentStaringsW instead of
_wenviron to solve it.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index 7cd09fb222..8a56699cca 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -201,6 +201,22 @@ describe('command line completion', function() ]]) end) + it('completes env var names', function() + clear() + screen:attach() + command('let $XTEST_1 = "foo" | let $XTEST_2 = "bar"') + command('set wildmode=full') + command('set wildmenu') + 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', |