summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-07-28 11:37:44 -0300
committerHisham <hisham@gobolinux.org>2016-07-28 11:37:44 -0300
commitef879b4a226f9293d4bfa11a36fa0861e6502b4d (patch)
treecb9e454b0d34822d692890abbf010fa7f1fdb26b /MainPanel.c
parentf80e577c5973069c1c84d7435eec60adc968da82 (diff)
'Follow' only if element is found in search
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MainPanel.c b/MainPanel.c
index 7aca7ed0..a62555ee 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -83,14 +83,14 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
result = HANDLED;
} else if (ch != ERR && this->inc->active) {
bool filterChanged = IncSet_handleKey(this->inc, ch, super, (IncMode_GetPanelValue) MainPanel_getValue, NULL);
- if (this->inc->found) {
- reaction |= Action_follow(this->state);
- }
if (filterChanged) {
this->state->pl->incFilter = IncSet_filter(this->inc);
reaction = HTOP_REFRESH | HTOP_REDRAW_BAR;
}
- reaction |= HTOP_KEEP_FOLLOWING;
+ if (this->inc->found) {
+ reaction |= Action_follow(this->state);
+ reaction |= HTOP_KEEP_FOLLOWING;
+ }
result = HANDLED;
} else if (ch == 27) {
return HANDLED;

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