From e584da44ae91a45ad258672b138c2a7894218b62 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 30 Apr 2009 02:12:23 +0200 Subject: [PATCH] awful.menu: set some vars as local Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 63dad261..c7402e90 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -95,7 +95,7 @@ local function get_parents(menu) end local function exec(menu, num, mouse_event) - cmd = menu.items[num].cmd + local cmd = menu.items[num].cmd if type(cmd) == "table" then if #cmd == 0 then return @@ -246,7 +246,7 @@ function clients(menu) menu.items = cls_t - m = new(menu) + local m = new(menu) m:show() return m end