contrib: initialization bugfix after lua52 port
The _NAME field was missing in the contrib table. Thanks to Jorg Thalheim for reporting this.
This commit is contained in:
parent
4caf95bfd0
commit
1a7b43068c
|
@ -11,7 +11,7 @@ local wrequire = require("vicious.helpers").wrequire
|
|||
|
||||
-- Vicious: widgets for the awesome window manager
|
||||
-- vicious.contrib
|
||||
local contrib = {}
|
||||
local contrib = { _NAME = "vicious.contrib" }
|
||||
-- }}}
|
||||
|
||||
-- Load modules at runtime as needed
|
||||
|
|
|
@ -33,8 +33,8 @@ local scroller = {}
|
|||
|
||||
-- {{{ Helper functions
|
||||
-- {{{ Loader of vicious modules
|
||||
function helpers.wrequire(table, key)
|
||||
local module = rawget(table, key)
|
||||
function helpers.wrequire(table, key)
|
||||
local module = rawget(table, key)
|
||||
return module or require(table._NAME .. "." .. key)
|
||||
end
|
||||
-- }}}
|
||||
|
|
Loading…
Reference in New Issue