summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-06 14:56:37 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-06 15:40:15 +0200
commit45d82c3f1c47b79898b03ee89062d502e720b8d5 (patch)
tree5122d199b0246b044def6868b12043907b8a97a2 /src/systemctl
parent50098d87fbe677bd43cb7329b2e32b039401f35c (diff)
downloadsystemd-45d82c3f1c47b79898b03ee89062d502e720b8d5.tar.gz
systemctl: ensure underline for "list-unit-files" empty cells
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 07b0fdd2c5..807a497427 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1546,8 +1546,9 @@ static int output_unit_file_list(const UnitFileList *units, unsigned c) {
TABLE_STRING, unit_preset_str,
TABLE_SET_COLOR, strempty(on_preset_color));
} else
- r = table_add_many(table, TABLE_EMPTY);
-
+ r = table_add_many(table,
+ TABLE_EMPTY,
+ TABLE_SET_COLOR, underline ? ansi_grey_underline() : ansi_grey());
if (r < 0)
return table_log_add_error(r);
}