Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
ef879b4a
Commit
ef879b4a
authored
Jul 28, 2016
by
Hisham
Browse files
'Follow' only if element is found in search
parent
f80e577c
Changes
1
Hide whitespace changes
Inline
Side-by-side
MainPanel.c
View file @
ef879b4a
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment