diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-02-02 23:45:40 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-02-02 23:45:40 +0000 |
commit | 1a604a05a5ab67949adfcf3d138c6c22d36bd511 (patch) | |
tree | 7b5f7268c454336953b5b9b3442e3f38043767c2 /htop.c | |
parent | 58676d70010f93f65a10945c45bd0910204a203a (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |