diff options
author | Hisham <hisham@gobolinux.org> | 2016-05-05 10:30:06 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-05-05 10:30:06 -0300 |
commit | 572546f8063095ff3195ef10823ec1f4882092f3 (patch) | |
tree | 321aca2bf86993e89ca47351f2c746538e111f67 /MainPanel.c | |
parent | d464be13db271d2898bd33691b5d145949a74174 (diff) |
Auto-follow process after a search.
See #237.
Diffstat (limited to 'MainPanel.c')
-rw-r--r-- | MainPanel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MainPanel.c b/MainPanel.c index f9b45d64..ed7f3ad1 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -83,6 +83,9 @@ 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; |