We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b00e7c6 commit edabd47Copy full SHA for edabd47
init.lua
@@ -261,12 +261,16 @@ end
261
-- }}}
262
263
-- {{{ Get custom widget format data
264
-function vicious.getdata(myw, format, warg)
265
- return helpers.format(format, myw(format, warg))
+function vicious.call(myw, format, warg)
+ local mydata = myw(format, warg)
266
+ if type(format) == "string" then
267
+ return helpers.format(format, mydata)
268
+ elseif type(format) == "function" then
269
+ return format(myw, mydata)
270
+ end
271
end
272
273
-
274
return vicious
275
276
0 commit comments