awful: fix completion #command == 0

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-19 08:27:50 +02:00
parent d980db411d
commit 85dbc8fd01
1 changed files with 2 additions and 0 deletions

View File

@ -467,6 +467,8 @@ local function menu_completion_bash(command, cur_pos, ncomp)
-- do nothing if we are on a letter, i.e. not at len + 1 or on a space
if cur_pos ~= #command + 1 and command:sub(cur_pos, cur_pos) ~= " " then
return command, cur_pos
elseif #command == 0 then
return command, cur_pos
end
while wend <= #command do