summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-05-30 12:32:05 +0200
committerBenBE <BenBE@geshi.org>2022-08-04 19:49:52 +0200
commit2b2420d0ebd4734b59f5d72ad2d5959af90da261 (patch)
tree2cf5a581d801540e80d7b13b1150d876a21be688
parentccbd490e9bbf17ac5a6d5e4131ba9ae648fe396b (diff)
actionExpandOrCollapse: NOOP in flat mode
This shortcut does not have any visible effect in flat mode, so disable it completely to avoid possible confusion.
-rw-r--r--Action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Action.c b/Action.c
index b7652487..ffc4a893 100644
--- a/Action.c
+++ b/Action.c
@@ -289,6 +289,9 @@ static Htop_Reaction actionInvertSortOrder(State* st) {
}
static Htop_Reaction actionExpandOrCollapse(State* st) {
+ if (!st->settings->ss->treeView)
+ return HTOP_OK;
+
bool changed = expandCollapse((Panel*)st->mainPanel);
return changed ? HTOP_RECALCULATE : HTOP_OK;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy