From: Lennart Poettering Date: Fri, 18 Sep 2015 22:48:49 +0000 (+0200) Subject: cgtop: make sure help text doesn't cause main contents to move X-Git-Tag: v227~101^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08edf879ed3c98e5ae889dceb8b761929f407054;p=thirdparty%2Fsystemd.git 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.) --- diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 9e1af4ec7a5..9cf13cf57d6 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];