From 4369978f4d743b0f9507071a24997552f74d0256 Mon Sep 17 00:00:00 2001 From: "D.musique" Date: Wed, 29 Jan 2025 12:47:39 +0100 Subject: [PATCH] Fix color char not getting the correct style --- cansid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cansid.c b/cansid.c index 765a510..4ce719c 100644 --- a/cansid.c +++ b/cansid.c @@ -100,7 +100,7 @@ struct color_char cansid_process(struct cansid_state *state, char x) } else if (x == 'm') { // Finish and apply styles state->state = CANSID_ESC; - state->style = state->next_style; + rv.style = state->style = state->next_style; } else { state->state = CANSID_ESC; state->next_style = state->style;