From 418151f57ebe56b84e35169e73912fe244871db5 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 1 Aug 2009 23:11:41 +0200 Subject: Make all widgets return their worker functions when called. --- fs.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs.lua') diff --git a/fs.lua b/fs.lua index 3afe801..313f91e 100644 --- a/fs.lua +++ b/fs.lua @@ -6,6 +6,7 @@ -- {{{ Grab environment local type = type local io = { popen = io.popen } +local setmetatable = setmetatable local helpers = require("vicious.helpers") -- }}} @@ -54,3 +55,5 @@ function worker(format, padding) return args end -- }}} + +setmetatable(_M, { __call = function(_, ...) return worker(...) end }) -- cgit v1.2.3