summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-12 18:02:39 +0100
committerBenBE <BenBE@geshi.org>2021-03-14 14:47:15 +0100
commita4173f52097fd78d0dab2e3296514e7dc7e54660 (patch)
treee2510b2cb977a59c34226ea8a632578e097aefe5 /Action.c
parent1275139795e9b751af13ec10f96806d852591e39 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Action.c b/Action.c
index 2d30a7ec..b2a2dfd9 100644
--- a/Action.c
+++ b/Action.c
@@ -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) {

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