]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: always show underline even if unit has no job ID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 14 Nov 2020 00:19:01 +0000 (09:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 14 Nov 2020 00:19:01 +0000 (09:19 +0900)
src/systemctl/systemctl-list-units.c

index 08019123963b002370b6ed07204c31fcfb287aec..ddef5def0ce0301e485060b1f0fafa9fa839cba2 100644 (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)