summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-02-02 23:45:40 +0000
committerHisham Muhammad <hisham@gobolinux.org>2012-02-02 23:45:40 +0000
commit1a604a05a5ab67949adfcf3d138c6c22d36bd511 (patch)
tree7b5f7268c454336953b5b9b3442e3f38043767c2 /htop.c
parent58676d70010f93f65a10945c45bd0910204a203a (diff)
BUGFIX: behavior of 'F' (follow) key was broken, also affecting the
persistence of mouse selections. Closes #3165065.
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index dda99c8f..dd760713 100644
--- a/htop.c
+++ b/htop.c
@@ -440,6 +440,7 @@ int main(int argc, char** argv) {
gettimeofday(&tv, NULL);
newTime = ((double)tv.tv_sec * 10) + ((double)tv.tv_usec / 100000);
recalculate = (newTime - oldTime > CRT_delay);
+ int following = follow ? ((Process*)Panel_getSelected(panel))->pid : -1;
if (recalculate)
oldTime = newTime;
if (doRefresh) {
@@ -451,7 +452,7 @@ int main(int argc, char** argv) {
ProcessList_sort(pl);
refreshTimeout = 1;
}
- ProcessList_rebuildPanel(pl, true, follow, userOnly, userId, filtering, incFilter.buffer);
+ ProcessList_rebuildPanel(pl, true, following, userOnly, userId, filtering, incFilter.buffer);
}
doRefresh = true;

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