From 2c6222e30a25a833e8554709818e1c378ca46848 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 12 Feb 2021 18:48:09 +0100 Subject: Option and key ("*") to collapse / expand all branches under PID 1 (and PID 2 if kernel threads are shown) Based on hishamhm/htop#510 by Krishna Chaitanya, B Closes #68 --- htop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'htop.c') diff --git a/htop.c b/htop.c index 65ad21e4..785d4554 100644 --- a/htop.c +++ b/htop.c @@ -469,6 +469,9 @@ int main(int argc, char** argv) { millisleep(75); ProcessList_scan(pl, false); + if (settings->allBranchesCollapsed) + ProcessList_collapseAllBranches(pl); + ScreenManager_run(scr, NULL, NULL); attron(CRT_colors[RESET_COLOR]); -- cgit v1.2.3