awful: fix bug with no completion
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9b6d03d05f
commit
dcbe24b521
|
@ -497,6 +497,11 @@ local function menu_completion_bash(command, cur_pos, ncomp)
|
||||||
|
|
||||||
c:close()
|
c:close()
|
||||||
|
|
||||||
|
-- no completion, return
|
||||||
|
if #output == 0 then
|
||||||
|
return command, cur_pos
|
||||||
|
end
|
||||||
|
|
||||||
-- cycle
|
-- cycle
|
||||||
while ncomp > #output do
|
while ncomp > #output do
|
||||||
ncomp = ncomp - #output
|
ncomp = ncomp - #output
|
||||||
|
|
Loading…
Reference in New Issue