mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
test: multibyte env var names #9655
This commit is contained in:
@@ -3913,7 +3913,7 @@ abort_search:
|
|||||||
VIsual = t;
|
VIsual = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -171,19 +171,21 @@ end)
|
|||||||
|
|
||||||
describe('command line completion', function()
|
describe('command line completion', function()
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
|
||||||
screen = Screen.new(40, 5)
|
screen = Screen.new(40, 5)
|
||||||
screen:attach()
|
screen:set_default_attr_ids({
|
||||||
screen:set_default_attr_ids({[1]={bold=true, foreground=Screen.colors.Blue}})
|
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||||
|
[2] = {foreground = Screen.colors.Grey0, background = Screen.colors.Yellow},
|
||||||
|
[3] = {bold = true, reverse = true},
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
after_each(function()
|
||||||
os.remove('Xtest-functional-viml-compl-dir')
|
os.remove('Xtest-functional-viml-compl-dir')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('lists directories with empty PATH', function()
|
it('lists directories with empty PATH', function()
|
||||||
|
clear()
|
||||||
|
screen:attach()
|
||||||
local tmp = funcs.tempname()
|
local tmp = funcs.tempname()
|
||||||
command('e '.. tmp)
|
command('e '.. tmp)
|
||||||
command('cd %:h')
|
command('cd %:h')
|
||||||
@@ -198,6 +200,24 @@ describe('command line completion', function()
|
|||||||
:!Xtest-functional-viml-compl-dir^ |
|
:!Xtest-functional-viml-compl-dir^ |
|
||||||
]])
|
]])
|
||||||
end)
|
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)
|
end)
|
||||||
|
|
||||||
describe('ui/ext_wildmenu', function()
|
describe('ui/ext_wildmenu', function()
|
||||||
|
Reference in New Issue
Block a user