Skip to content

Commit 39a922c

Browse files
Daniel LangeDaniel Lange
authored andcommitted
Make search function activate following on find consistently
1 parent 93fe4ca commit 39a922c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

MainPanel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
105105
reaction = HTOP_REFRESH | HTOP_REDRAW_BAR;
106106
}
107107
if (this->inc->found && this->inc->active && !this->inc->active->isFilter) {
108-
reaction |= Action_follow(this->state);
108+
host->activeTable->following = MainPanel_selectedRow(this);
109+
Panel_setSelectionColor(super, PANEL_SELECTION_FOLLOW);
109110
reaction |= HTOP_KEEP_FOLLOWING;
110111
}
111112
result = HANDLED;

0 commit comments

Comments
 (0)