diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-11-09 11:37:47 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-11-09 11:37:47 +0100 |
commit | a2a169affeb57a42e27dd4893da0bdb52542dae9 (patch) | |
tree | 5e74ba9f3930688bcb2979b2a6cbc01f15c20f38 | |
parent | 753a1170b12ee207b12763f11f900546b1008cd0 (diff) |
flowtop: Simplify toggling of help state
No need to use if/else, just toogle it like any other bool.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | flowtop.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1257,11 +1257,7 @@ static void presenter(void) show_active_only = !show_active_only; break; case '?': - if (show_help) - show_help = false; - else - show_help = true; - + show_help = !show_help; wclear(screen); clear(); break; |