summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-29 18:32:46 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-29 18:54:37 +0200
commit964d124efad8a2fe07141338cb4ef674f7217fe2 (patch)
treee054bf32d07af982c74c6a87608719603360c121 /src/systemctl.c
parent441dfe092acb0f283f7712a80e144b4392b526a0 (diff)
systemctl: don't truncate description when using pager
https://bugs.freedesktop.org/show_bug.cgi?id=35725
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 599894ef20..1507b52f92 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -387,7 +387,7 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
if (on_tty()) {
printf("%-25s %-6s %-*s %-*s %-*s", "UNIT", "LOAD",
active_len, "ACTIVE", sub_len, "SUB", job_len, "JOB");
- if (columns() >= 80+12 || arg_full)
+ if (columns() >= 80+12 || arg_full || !arg_no_pager)
printf(" %s\n", "DESCRIPTION");
else
printf("\n");
@@ -440,7 +440,7 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
if (u->job_id == 0)
printf(" %-*s", job_len, "");
- if (arg_full)
+ if (arg_full || !arg_no_pager)
printf(" %s", u->description);
else
printf(" %.*s", columns() - a - b - 1, u->description);