aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/wildmode_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-03-03 13:45:38 +0100
committerGitHub <noreply@github.com>2019-03-03 13:45:38 +0100
commit8e54847fdf3c4e3c9ed1b4ae8a026b452419c6bf (patch)
tree2486bda1c0011c25449fead02a72858a24554357 /test/functional/ui/wildmode_spec.lua
parent14c53e4cbede164fb7bbfc948625a769dfb1fa64 (diff)
parentbb8ea83d755d94c4e1b259b493ebb6fe8ea084b5 (diff)
downloadrneovim-8e54847fdf3c4e3c9ed1b4ae8a026b452419c6bf.tar.gz
rneovim-8e54847fdf3c4e3c9ed1b4ae8a026b452419c6bf.tar.bz2
rneovim-8e54847fdf3c4e3c9ed1b4ae8a026b452419c6bf.zip
Merge #9666 'Fix completion of multibyte env var names'
Diffstat (limited to 'test/functional/ui/wildmode_spec.lua')
-rw-r--r--test/functional/ui/wildmode_spec.lua30
1 files changed, 25 insertions, 5 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index ffe71cfadf..7cd09fb222 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -171,19 +171,21 @@ end)
describe('command line completion', function()
local screen
-
before_each(function()
- clear()
screen = Screen.new(40, 5)
- screen:attach()
- screen:set_default_attr_ids({[1]={bold=true, foreground=Screen.colors.Blue}})
+ screen:set_default_attr_ids({
+ [1] = {bold = true, foreground = Screen.colors.Blue1},
+ [2] = {foreground = Screen.colors.Grey0, background = Screen.colors.Yellow},
+ [3] = {bold = true, reverse = true},
+ })
end)
-
after_each(function()
os.remove('Xtest-functional-viml-compl-dir')
end)
it('lists directories with empty PATH', function()
+ clear()
+ screen:attach()
local tmp = funcs.tempname()
command('e '.. tmp)
command('cd %:h')
@@ -198,6 +200,24 @@ describe('command line completion', function()
:!Xtest-functional-viml-compl-dir^ |
]])
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')
+ feed(':!echo $XTEST_<tab>')
+ screen:expect([[
+ |
+ {1:~ }|
+ {1:~ }|
+ {2:XTEST_1AaあB}{3: XTEST_2 }|
+ :!echo $XTEST_1AaあB^ |
+ ]])
+ end)
end)
describe('ui/ext_wildmenu', function()