summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorMaxim Zhiburt <zhiburt@gmail.com>2020-11-18 14:19:42 +0300
committerBenBE <BenBE@geshi.org>2020-12-02 23:50:05 +0100
commitcf306ff86e44361d8cf3aaaec568b20fb8bbfa3d (patch)
tree3741dcef1f39b2258dffdd2151bba05b4fe792eb /Action.c
parent4f7d48aa24b20f92b3cd9438a446e345b849c39b (diff)
Implement sorting in tree mode
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Action.c b/Action.c
index 47fa6f17..66934bec 100644
--- a/Action.c
+++ b/Action.c
@@ -160,7 +160,6 @@ static bool collapseIntoParent(Panel* panel) {
Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) {
settings->sortKey = sortKey;
settings->direction = 1;
- settings->treeView = false;
return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_UPDATE_PANELHDR | HTOP_KEEP_FOLLOWING;
}
@@ -661,7 +660,7 @@ void Action_setBindings(Htop_Action* keys) {
keys['['] = actionLowerPriority;
keys[KEY_F(8)] = actionLowerPriority;
keys['I'] = actionInvertSortOrder;
- keys[KEY_F(6)] = actionExpandCollapseOrSortColumn;
+ keys[KEY_F(6)] = actionSetSortColumn;
keys[KEY_F(18)] = actionExpandCollapseOrSortColumn;
keys['<'] = actionSetSortColumn;
keys[','] = actionSetSortColumn;

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