awful.completion: handle first word as command always

This is necessary for `./*`, but should apply in general.
It was changed in 3986409e, but there is no argument for it in the
commit (message) really.
This commit is contained in:
Daniel Hahler 2017-04-17 14:10:38 +02:00
parent 2a69ffa374
commit 4c792b49a9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function completion.shell(command, cur_pos, ncomp, shell)
i = i + 1
end
if cword_index == 1 and not string.find(words[cword_index], "/") then
if cword_index == 1 then
comptype = "command"
end