Extend prefix for local file
Since we want some folders in the testing area, we need to be a bit more explicit about the file completion.
This commit is contained in:
parent
0bd74b4f72
commit
13b3a18a75
|
@ -137,12 +137,12 @@ describe("awful.completion.shell", function()
|
||||||
|
|
||||||
if has_bash then
|
if has_bash then
|
||||||
it("completes local file (bash)", function()
|
it("completes local file (bash)", function()
|
||||||
assert.same(shell('ls ', 4, 1, 'bash'), {'ls localcommand', 16, {'localcommand'}})
|
assert.same(shell('ls l', 5, 1, 'bash'), {'ls localcommand', 16, {'localcommand'}})
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
if has_zsh then
|
if has_zsh then
|
||||||
it("completes local file (zsh)", function()
|
it("completes local file (zsh)", function()
|
||||||
assert.same(shell('ls ', 4, 1, 'zsh'), {'ls localcommand', 16, {'localcommand'}})
|
assert.same(shell('ls l', 5, 1, 'zsh'), {'ls localcommand', 16, {'localcommand'}})
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue