summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index c62a4541..2dd778fd 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -366,8 +366,8 @@ void init_Text(SDL_Renderer *render) {
366 iText *d = &text_; 366 iText *d = &text_;
367 d->contentFont = nunito_TextFont; 367 d->contentFont = nunito_TextFont;
368 d->headingFont = nunito_TextFont; 368 d->headingFont = nunito_TextFont;
369 d->contentFontSize = contentScale_Text_; 369 d->contentFontSize = contentScale_Text_;
370 d->ansiEscape = new_RegExp("\\[([0-9;]+)m", 0); 370 d->ansiEscape = new_RegExp("[[()]([0-9;AB]*)m", 0);
371 d->render = render; 371 d->render = render;
372 /* A grayscale palette for rasterized glyphs. */ { 372 /* A grayscale palette for rasterized glyphs. */ {
373 SDL_Color colors[256]; 373 SDL_Color colors[256];