diff --git a/chat/message/theme.go b/chat/message/theme.go index be4f9cd..ef40d6b 100644 --- a/chat/message/theme.go +++ b/chat/message/theme.go @@ -83,6 +83,9 @@ type Palette struct { // Get a color by index, overflows are looped around. func (p Palette) Get(i int) Style { + if p.size == 1 { + return p.colors[0] + } return p.colors[i%(p.size-1)] }