fix(palette): create AnsiColors on plain block init

This commit is contained in:
Jan De Dobbeleer 2021-11-22 22:05:15 +01:00 committed by Jan De Dobbeleer
parent 9ecd7c09a4
commit ea35416363

View file

@ -54,6 +54,7 @@ func (b *Block) initPlain(env environmentInfo, config *Config) {
b.writer = &AnsiWriter{
ansi: b.ansi,
terminalBackground: getConsoleBackgroundColor(env, config.TerminalBackground),
ansiColors: MakeColors(env, config),
}
b.env = env
}