diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-12 18:02:39 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-03-14 14:47:15 +0100 |
commit | a4173f52097fd78d0dab2e3296514e7dc7e54660 (patch) | |
tree | e2510b2cb977a59c34226ea8a632578e097aefe5 /Action.c | |
parent | 1275139795e9b751af13ec10f96806d852591e39 (diff) |
Improve process following
- stay in follow mode on sort inversion (I)
- stay in follow mode after viewing help screen (h)
- select parent process (where available) when having followed a thread
and hiding these (H)
Closes: #560
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -267,7 +267,7 @@ static Htop_Reaction actionInvertSortOrder(State* st) { Settings_invertSortOrder(st->settings); if (st->pauseProcessUpdate) ProcessList_sort(st->pl); - return HTOP_REFRESH | HTOP_SAVE_SETTINGS; + return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING; } static Htop_Reaction actionExpandOrCollapse(State* st) { @@ -582,7 +582,7 @@ static Htop_Reaction actionHelp(State* st) { CRT_readKey(); clear(); - return HTOP_RECALCULATE | HTOP_REDRAW_BAR; + return HTOP_RECALCULATE | HTOP_REDRAW_BAR | HTOP_KEEP_FOLLOWING; } static Htop_Reaction actionUntagAll(State* st) { |