Skip to content

Commit 0b06749

Browse files
committed
actionExpandOrCollapse: NOOP in flat mode
This shortcut does not have any visible effect in flat mode, so disable it completely to avoid possible confusion.
1 parent 611ea46 commit 0b06749

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Action.c

+3
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ static Htop_Reaction actionInvertSortOrder(State* st) {
289289
}
290290

291291
static Htop_Reaction actionExpandOrCollapse(State* st) {
292+
if (!st->settings->ss->treeView)
293+
return HTOP_OK;
294+
292295
bool changed = expandCollapse((Panel*)st->mainPanel);
293296
return changed ? HTOP_RECALCULATE : HTOP_OK;
294297
}

0 commit comments

Comments
 (0)