From dcbe24b521072617c85c82cb98c0b0c9fa4b9881 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 18 Jun 2008 20:32:54 +0200 Subject: [PATCH] awful: fix bug with no completion Signed-off-by: Julien Danjou --- awful.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awful.lua b/awful.lua index b3e162365..be15306ea 100644 --- a/awful.lua +++ b/awful.lua @@ -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