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:
Florian Gamböck 2017-07-02 16:06:54 +02:00
parent 0bd74b4f72
commit 13b3a18a75
1 changed files with 2 additions and 2 deletions

View File

@ -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)