summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-05-17 08:19:30 +1000
committerNathan Scott <nathans@redhat.com>2023-05-17 08:19:30 +1000
commit1de7a2b6e329cc7a9dde366f73d9f0854733cf4e (patch)
tree51608b6e8a3a28ece566b3350919d9e993d3a155 /Action.c
parenta393066ce87b81c2dbe50c1dee3cac8846fcc0cc (diff)
Make Action_pickFromVector code match header prototype
Noticed by BenBE in review of #1243
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Action.c b/Action.c
index e00b2c52..75cf8c85 100644
--- a/Action.c
+++ b/Action.c
@@ -43,7 +43,7 @@ in the source distribution for its full text.
#endif
-Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess) {
+Object* Action_pickFromVector(State* st, Panel* list, int x, bool follow) {
MainPanel* mainPanel = st->mainPanel;
Header* header = st->header;
Machine* host = st->host;
@@ -56,8 +56,8 @@ Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess)
Panel* panelFocus;
int ch;
bool unfollow = false;
- int pid = followProcess ? MainPanel_selectedPid(mainPanel) : -1;
- if (followProcess && host->pl->following == -1) {
+ int pid = follow ? MainPanel_selectedPid(mainPanel) : -1;
+ if (follow && host->pl->following == -1) {
host->pl->following = pid;
unfollow = true;
}
@@ -69,7 +69,7 @@ Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess)
Panel_move((Panel*)mainPanel, 0, y);
Panel_resize((Panel*)mainPanel, COLS, LINES - y - 1);
if (panelFocus == list && ch == 13) {
- if (followProcess) {
+ if (follow) {
const Process* selected = (const Process*)Panel_getSelected((Panel*)mainPanel);
if (selected && selected->pid == pid)
return Panel_getSelected(list);

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