From 06d6948a2d35687411b1cd6c6e0f51d4ad80e82d Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 18 Nov 2022 20:38:48 +0300 Subject: [PATCH] Fix method call --- color/paintbrush.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/color/paintbrush.v b/color/paintbrush.v index 6138fac..3b1e65a 100644 --- a/color/paintbrush.v +++ b/color/paintbrush.v @@ -1,7 +1,5 @@ module color -import term - pub struct PaintBrush { pub: fg ?Color @@ -24,7 +22,7 @@ pub fn (p &PaintBrush) render(msg string) string { } for style in p.styles { - result = style.color(result) + result = style.render(result) } return result