From 810394481b73f932f9fabbc75aee14cc6cba12d2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 14 Nov 2020 09:19:01 +0900 Subject: [PATCH] systemctl: always show underline even if unit has no job ID --- src/systemctl/systemctl-list-units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl-list-units.c b/src/systemctl/systemctl-list-units.c index 0801912396..ddef5def0c 100644 --- a/src/systemctl/systemctl-list-units.c +++ b/src/systemctl/systemctl-list-units.c @@ -156,7 +156,7 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) { TABLE_STRING, u->sub_state, TABLE_SET_BOTH_COLORS, on_active, TABLE_STRING, u->job_id ? u->job_type: "", - TABLE_SET_BOTH_COLORS, u->job_id ? on_underline : "", + TABLE_SET_BOTH_COLORS, on_underline, TABLE_STRING, u->description, TABLE_SET_BOTH_COLORS, on_underline); if (r < 0) -- 2.25.1