awful.menu: set some vars as local

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-30 02:12:23 +02:00
parent 2b0d3f6ab2
commit e584da44ae
1 changed files with 2 additions and 2 deletions

View File

@ -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