From 69a96fc505c53f1f44842b6b5ff8643ea12492d1 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Sun, 26 Feb 2012 09:39:09 +0530 Subject: [PATCH] gears.color: call the correct creator function in local string_pattern function The corresponding pattern factory that `string_pattern` delegates to is stored in the `creator` parameter, and not `v`; probably a typo. Signed-off-by: Anurag Priyam Signed-off-by: Uli Schlachter --- lib/gears/color.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/color.lua.in b/lib/gears/color.lua.in index d285c4ae..1299ff61 100644 --- a/lib/gears/color.lua.in +++ b/lib/gears/color.lua.in @@ -105,7 +105,7 @@ local function string_pattern(creator, arg) table.insert(args, v) end -- And call our creator function with the values - local p = v(unpack(args)) + local p = creator(unpack(args)) add_iterator_stops(p, iterator) return p