summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-05-05 10:30:06 -0300
committerHisham <hisham@gobolinux.org>2016-05-05 10:30:06 -0300
commit572546f8063095ff3195ef10823ec1f4882092f3 (patch)
tree321aca2bf86993e89ca47351f2c746538e111f67 /Action.c
parentd464be13db271d2898bd33691b5d145949a74174 (diff)
Auto-follow process after a search.
See #237.
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 3fc22177..ee34a4bc 100644
--- a/Action.c
+++ b/Action.c
@@ -328,7 +328,7 @@ static Htop_Reaction actionFilterByUser(State* st) {
return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
}
-static Htop_Reaction actionFollow(State* st) {
+Htop_Reaction Action_follow(State* st) {
st->pl->following = MainPanel_selectedPid((MainPanel*)st->panel);
Panel_setSelectionColor(st->panel, CRT_colors[PANEL_SELECTION_FOLLOW]);
return HTOP_KEEP_FOLLOWING;
@@ -557,7 +557,7 @@ void Action_setBindings(Htop_Action* keys) {
keys['='] = actionExpandOrCollapse;
keys['-'] = actionExpandOrCollapse;
keys['u'] = actionFilterByUser;
- keys['F'] = actionFollow;
+ keys['F'] = Action_follow;
keys['S'] = actionSetup;
keys['C'] = actionSetup;
keys[KEY_F(2)] = actionSetup;

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