summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-19 00:48:49 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-22 16:31:02 +0200
commit08edf879ed3c98e5ae889dceb8b761929f407054 (patch)
tree81f6ecba348470f836ae2cbe287c5480d1ac42a2
parent4fdae6c8479f6c1a256bc95099cae2fdc23e9256 (diff)
cgtop: make sure help text doesn't cause main contents to move
Let's always keep space for the full help text. (We used to do that, but recently another line of help was added which broke this.)
-rw-r--r--src/cgtop/cgtop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index 9e1af4ec7a..9cf13cf57d 100644
--- a/src/cgtop/cgtop.c
+++ b/src/cgtop/cgtop.c
@@ -602,7 +602,7 @@ static void display(Hashmap *a) {
_cleanup_free_ char *ellipsized = NULL;
const char *path;
- if (on_tty() && j + 5 > rows)
+ if (on_tty() && j + 6 > rows)
break;
g = array[j];