mirror of
https://github.com/RGBCube/color.v
synced 2025-08-01 10:27:45 +00:00
Fix method call
This commit is contained in:
parent
52b16209c7
commit
06d6948a2d
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue