diff options
author | Matthias Richter <vrld@vrld.org> | 2012-02-21 14:52:30 +0100 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2012-02-21 14:52:30 +0100 |
commit | a094675a49cf4ab011ddb15fd1bc21632caceb9c (patch) | |
tree | 8132a17163699fc341d7ab5fa9c0472ef55a80fd /core.lua | |
parent | 77674a48300d92c6fb7db8efd25cda995ff3d060 (diff) | |
download | Quickie-a094675a49cf4ab011ddb15fd1bc21632caceb9c.tar.gz Quickie-a094675a49cf4ab011ddb15fd1bc21632caceb9c.tar.bz2 Quickie-a094675a49cf4ab011ddb15fd1bc21632caceb9c.tar.xz Quickie-a094675a49cf4ab011ddb15fd1bc21632caceb9c.zip |
Better require regexps for submodules
Diffstat (limited to 'core.lua')
-rw-r--r-- | core.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,6 @@ -- state local context = {maxid = 0} +local draw_items = {n = 0} local NO_WIDGET = function()end local function generateID() @@ -87,7 +88,6 @@ local function save_unpack(t, i) return t[i], save_unpack(t, i+1) end -local draw_items = {n = 0} local function registerDraw(id, f, ...) assert(type(f) == 'function' or (getmetatable(f) or {}).__call, 'Drawing function is not a callable type!') @@ -141,7 +141,7 @@ return { hasKeyFocus = hasKeyFocus, makeTabable = makeTabable, - style = require((...):match("^(.+)%.[^%.]+") .. '.style-default'), + style = require((...):match("(.-)[^%.]+$") .. '.style-default'), color = color, registerDraw = registerDraw, draw = draw, |