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
51021359
Commit
51021359
authored
Apr 22, 2009
by
Hisham Muhammad
Browse files
clean inc search buffer code
parent
843aded5
Changes
1
Hide whitespace changes
Inline
Side-by-side
htop.c
View file @
51021359
...
...
@@ -353,8 +353,6 @@ int main(int argc, char** argv) {
if
(
recalculate
)
oldTime
=
newTime
;
if
(
doRefresh
)
{
incSearchIndex
=
0
;
incSearchBuffer
[
0
]
=
0
;
int
currPos
=
Panel_getSelectedIndex
(
panel
);
unsigned
int
currPid
=
0
;
int
currScrollV
=
panel
->
scrollV
;
...
...
@@ -429,8 +427,6 @@ int main(int argc, char** argv) {
incSearchBuffer
[
incSearchIndex
]
=
0
;
}
else
{
incSearchMode
=
false
;
incSearchIndex
=
0
;
incSearchBuffer
[
0
]
=
0
;
FunctionBar_draw
(
defaultBar
,
NULL
);
continue
;
}
...
...
@@ -729,8 +725,10 @@ int main(int argc, char** argv) {
}
case
KEY_F
(
3
):
case
'/'
:
FunctionBar_draw
(
searchBar
,
incSearchBuffer
);
incSearchIndex
=
0
;
incSearchBuffer
[
0
]
=
0
;
incSearchMode
=
true
;
FunctionBar_draw
(
searchBar
,
incSearchBuffer
);
break
;
case
't'
:
case
KEY_F
(
5
):
...
...
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