From 38fee6195230ebba8baaf4becb37a75e63562c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= Date: Wed, 6 May 2020 19:17:04 +0200 Subject: [PATCH] systemctl: Fix frozen state coloring When unit is in an unhighlighted state, freezer coloring won't be turned off (active_off is empty) until the end of the TTY output. --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 83d0e39738..460e7f69b9 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4192,7 +4192,7 @@ static void print_status_info( fs = !isempty(i->freezer_state) && !streq(i->freezer_state, "running") ? i->freezer_state : NULL; if (fs) - printf(" %s(%s)%s", ansi_highlight_yellow(), fs, active_off); + printf(" %s(%s)%s", ansi_highlight_yellow(), fs, ansi_normal()); if (!isempty(i->result) && !streq(i->result, "success")) printf(" (Result: %s)", i->result);