systemctl: always show underline even if unit has no job ID

This commit is contained in:
Yu Watanabe 2020-11-14 09:19:01 +09:00
parent e2357b1c8a
commit 810394481b
1 changed files with 1 additions and 1 deletions

View File

@ -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)