awful: fix bug with no completion

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-18 20:32:54 +02:00
parent 9b6d03d05f
commit dcbe24b521
1 changed files with 5 additions and 0 deletions

View File

@ -497,6 +497,11 @@ local function menu_completion_bash(command, cur_pos, ncomp)
c:close()
-- no completion, return
if #output == 0 then
return command, cur_pos
end
-- cycle
while ncomp > #output do
ncomp = ncomp - #output