summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-25 16:05:25 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-25 16:05:25 -0300
commit88c3758051e4f9b93cc4912a7f75078901869f0e (patch)
treeae6a78f050b8e5effd1febb1752864fdc434eacf
parent43c3e4d3d9df4bcdf52cb5c83da6d51da688d093 (diff)
Now, when you disable a filter (F4 → Esc), it will go back to unfiltered mode
but the current process will remain selected (so you can filter, choose and then go back to unfiltered mode to see the children of that process). Inspired by feedback at http://www.reddit.com/r/linux/comments/23wpc7/announcing_htop_103_with_new_features_bugfixes/ch1paos
-rw-r--r--htop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/htop.c b/htop.c
index b3438097..6b56727a 100644
--- a/htop.c
+++ b/htop.c
@@ -623,6 +623,9 @@ int main(int argc, char** argv) {
if (inc->active) {
doRefresh = IncSet_handleKey(inc, ch, panel, getMainPanelValue, NULL);
+ if (!inc->active) {
+ follow = true;
+ }
continue;
}